projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
b46b6f8
)
- fix SEGV when there's an exception in HttpRequest::onFinish()
author
Michael Wallner
<mike@php.net>
Mon, 4 Dec 2006 17:13:46 +0000
(17:13 +0000)
committer
Michael Wallner
<mike@php.net>
Mon, 4 Dec 2006 17:13:46 +0000
(17:13 +0000)
http_request_object.c
patch
|
blob
|
history
diff --git
a/http_request_object.c
b/http_request_object.c
index 3fbfdbf61d198262d57ec2c58bec84a459be6e2b..319cb4f23bbf2db20f4e58e32f039d832884ff11 100644
(file)
--- a/
http_request_object.c
+++ b/
http_request_object.c
@@
-721,6
+721,8
@@
STATUS _http_request_object_responsehandler(http_request_object *obj, zval *this
ret = FAILURE;
}
+ http_request_set_progress_callback(obj->request, NULL);
+
if (!EG(exception) && zend_hash_exists(&Z_OBJCE_P(getThis())->function_table, "onfinish", sizeof("onfinish"))) {
zval *param;
@@
-732,8
+734,6
@@
STATUS _http_request_object_responsehandler(http_request_object *obj, zval *this
zval_ptr_dtor(¶m);
}
- http_request_set_progress_callback(obj->request, NULL);
-
return ret;
}