fix retval
authorMichael Wallner <mike@php.net>
Mon, 9 Feb 2015 09:48:40 +0000 (10:48 +0100)
committerMichael Wallner <mike@php.net>
Mon, 9 Feb 2015 09:48:40 +0000 (10:48 +0100)
php_http_client.c

index 92398f3e471f3c80597c4bb070721068a834f055..22fc6ca0497960ec60a2a8a58c648415c3cbfcaf 100644 (file)
@@ -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)