Skip to content

Commit

Permalink
ext/spl: Use new F ZPP modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
Girgias committed Oct 6, 2023
1 parent a050a56 commit 87715c5
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions ext/spl/spl_iterators.c
Original file line number Diff line number Diff line change
Expand Up @@ -1436,15 +1436,9 @@ static spl_dual_it_object* spl_dual_it_construct(INTERNAL_FUNCTION_PARAMETERS, z
case DIT_CallbackFilterIterator:
case DIT_RecursiveCallbackFilterIterator: {
zend_fcall_info fci;
if (zend_parse_parameters(ZEND_NUM_ARGS(), "Of", &zobject, ce_inner, &fci, &intern->u.callback_filter) == FAILURE) {
if (zend_parse_parameters(ZEND_NUM_ARGS(), "OF", &zobject, ce_inner, &fci, &intern->u.callback_filter) == FAILURE) {
return NULL;
}
if (!ZEND_FCC_INITIALIZED(intern->u.callback_filter)) {
/* Call trampoline has been cleared by zpp. Refetch it, because we want to deal
* with it outselves. It is important that it is not refetched on every call,
* because calls may occur from different scopes. */
zend_is_callable_ex(&fci.function_name, NULL, IS_CALLABLE_SUPPRESS_DEPRECATIONS, NULL, &intern->u.callback_filter, NULL);
}
zend_fcc_addref(&intern->u.callback_filter);
break;
}
Expand Down

0 comments on commit 87715c5

Please sign in to comment.