1
0
mirror of https://github.com/php/php-src.git synced 2026-04-10 01:23:53 +02:00

Use zend_call_function_with_return_value() in SPL iterators

This commit is contained in:
George Peter Banyard
2022-10-21 12:01:06 +01:00
parent 76fe989cd2
commit 1ea1b6319e

View File

@@ -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;