Skip to content

Commit 1ea1b63

Browse files
committed
Use zend_call_function_with_return_value() in SPL iterators
1 parent 76fe989 commit 1ea1b63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/spl/spl_iterators.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3221,7 +3221,7 @@ static int spl_iterator_func_apply(zend_object_iterator *iter, void *puser) /* {
32213221
int result;
32223222

32233223
apply_info->count++;
3224-
zend_fcall_info_call(&apply_info->fci, &apply_info->fcc, &retval, NULL);
3224+
zend_call_function_with_return_value(&apply_info->fci, &apply_info->fcc, &retval);
32253225
result = zend_is_true(&retval) ? ZEND_HASH_APPLY_KEEP : ZEND_HASH_APPLY_STOP;
32263226
zval_ptr_dtor(&retval);
32273227
return result;

0 commit comments

Comments
 (0)