X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_request_object.c;h=319cb4f23bbf2db20f4e58e32f039d832884ff11;hp=3fbfdbf61d198262d57ec2c58bec84a459be6e2b;hb=3bf69148ad8af8fb5f5ab155f8cf8b76b82f2956;hpb=b46b6f8c9261ed2b7c5198169073b0ed18a9c4f5 diff --git a/http_request_object.c b/http_request_object.c index 3fbfdbf..319cb4f 100644 --- 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; }