X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=php_http_client.c;h=22fc6ca0497960ec60a2a8a58c648415c3cbfcaf;hb=8eee486472a8905b8964b08db05b22982fc63914;hp=92398f3e471f3c80597c4bb070721068a834f055;hpb=a767ef7140c3688689d332443ac9ab1471e02adb;p=m6w6%2Fext-http 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)