X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http_request_object.c;h=7eb00d493809e176c1bce075413d84f364113529;hb=fac50662a1ea545b40f15613f8c4806a1ed745b0;hp=177d3b800165548aeccb44c05648b6c9c155341a;hpb=e182678d6def86ac46dabdd30294e6a857c7a1f6;p=m6w6%2Fext-http diff --git a/http_request_object.c b/http_request_object.c index 177d3b8..7eb00d4 100644 --- a/http_request_object.c +++ b/http_request_object.c @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ @@ -606,7 +606,11 @@ STATUS _http_request_object_responsehandler(http_request_object *obj, zval *this http_request_info(obj->request, Z_ARRVAL_P(info)); SET_PROP(responseInfo, info); zval_ptr_dtor(&info); - + + if (zend_hash_exists(&Z_OBJCE_P(getThis())->function_table, "onfinish", sizeof("onfinish"))) { + zend_call_method_with_0_params(&getThis(), Z_OBJCE_P(getThis()), NULL, "onfinish", NULL); + } + return SUCCESS; } }