Skip to content

Commit 7092ff5

Browse files
authored
main/streams: use zend_call_known_fcc() instead of call_user_function() (#22192)
This prevents re-checking that the zval is a callable
1 parent 64ebf2f commit 7092ff5

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

main/streams/stream_errors.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -365,11 +365,7 @@ static void php_stream_call_error_handler(zval *handler, zval *errors_array)
365365
return;
366366
}
367367

368-
zval retval;
369-
370-
call_user_function(NULL, NULL, handler, &retval, 1, errors_array);
371-
372-
zval_ptr_dtor(&retval);
368+
zend_call_known_fcc(&fcc, NULL, 1, errors_array, NULL);
373369
}
374370

375371
static void php_stream_throw_exception_with_errors(php_stream_error_operation *op)

0 commit comments

Comments
 (0)