mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Use zend_call_function_with_return_value() in SPL iterators
This commit is contained in:
parent
76fe989cd2
commit
1ea1b6319e
1 changed files with 1 additions and 1 deletions
|
@ -3221,7 +3221,7 @@ static int spl_iterator_func_apply(zend_object_iterator *iter, void *puser) /* {
|
|||
int result;
|
||||
|
||||
apply_info->count++;
|
||||
zend_fcall_info_call(&apply_info->fci, &apply_info->fcc, &retval, NULL);
|
||||
zend_call_function_with_return_value(&apply_info->fci, &apply_info->fcc, &retval);
|
||||
result = zend_is_true(&retval) ? ZEND_HASH_APPLY_KEEP : ZEND_HASH_APPLY_STOP;
|
||||
zval_ptr_dtor(&retval);
|
||||
return result;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue