From caef0e9b14e6c7fcaa50685a5a3eb46dc1df65ec Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Tue, 18 Apr 2006 15:02:58 +0000 Subject: [PATCH] - rather show the exception than a useless "Cannot call HttpRequest::onfinish()" --- http_request_object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2