From: Michael Wallner Date: Tue, 18 Apr 2006 15:02:58 +0000 (+0000) Subject: - rather show the exception than a useless "Cannot call HttpRequest::onfinish()" X-Git-Tag: RELEASE_1_0_0~47 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;ds=sidebyside;h=caef0e9b14e6c7fcaa50685a5a3eb46dc1df65ec;p=m6w6%2Fext-http - rather show the exception than a useless "Cannot call HttpRequest::onfinish()" --- diff --git a/http_request_object.c b/http_request_object.c index 1d04ed1..11a6230 100644 --- a/http_request_object.c +++ b/http_request_object.c @@ -688,7 +688,7 @@ STATUS _http_request_object_responsehandler(http_request_object *obj, zval *this ret = FAILURE; } - if (zend_hash_exists(&Z_OBJCE_P(getThis())->function_table, "onfinish", sizeof("onfinish"))) { + if (!EG(exception) && zend_hash_exists(&Z_OBJCE_P(getThis())->function_table, "onfinish", sizeof("onfinish"))) { zval *param; MAKE_STD_ZVAL(param);