projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
40a6a12
)
fix retval
author
Michael Wallner
<mike@php.net>
Mon, 9 Feb 2015 09:48:40 +0000
(10:48 +0100)
committer
Michael Wallner
<mike@php.net>
Mon, 9 Feb 2015 09:48:40 +0000
(10:48 +0100)
php_http_client.c
patch
|
blob
|
history
diff --git
a/php_http_client.c
b/php_http_client.c
index 92398f3e471f3c80597c4bb070721068a834f055..22fc6ca0497960ec60a2a8a58c648415c3cbfcaf 100644
(file)
--- 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)