From: Michael Wallner Date: Mon, 9 Feb 2015 09:48:40 +0000 (+0100) Subject: fix retval X-Git-Tag: RELEASE_3_0_0_RC1~60 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=8eee486472a8905b8964b08db05b22982fc63914;p=m6w6%2Fext-http fix retval --- diff --git a/php_http_client.c b/php_http_client.c index 92398f3..22fc6ca 100644 --- a/php_http_client.c +++ b/php_http_client.c @@ -860,9 +860,11 @@ static int notify(zend_object_iterator *iter, void *puser) struct notify_arg *arg = puser; if ((observer = iter->funcs->get_current_data(iter))) { - return php_http_object_method_call(arg->cb, observer, NULL, arg->argc, arg->args); + if (SUCCESS == php_http_object_method_call(arg->cb, observer, NULL, arg->argc, arg->args)) { + return ZEND_HASH_APPLY_KEEP; + } } - return FAILURE; + return ZEND_HASH_APPLY_STOP; } ZEND_BEGIN_ARG_INFO_EX(ai_HttpClient_notify, 0, 0, 0)