From c774dafbf64efe11e4f090dc1466f109d1350331 Mon Sep 17 00:00:00 2001 From: Gina Peter Banyard Date: Sat, 30 May 2026 15:29:27 +0200 Subject: [PATCH] main/streams: use zend_call_known_fcc() instead of call_user_function() This prevents re-checking that the zval is a callable --- main/streams/stream_errors.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/main/streams/stream_errors.c b/main/streams/stream_errors.c index 1131f70ec29a..c4a2f74db8a9 100644 --- a/main/streams/stream_errors.c +++ b/main/streams/stream_errors.c @@ -365,11 +365,7 @@ static void php_stream_call_error_handler(zval *handler, zval *errors_array) return; } - zval retval; - - call_user_function(NULL, NULL, handler, &retval, 1, errors_array); - - zval_ptr_dtor(&retval); + zend_call_known_fcc(&fcc, NULL, 1, errors_array, NULL); } static void php_stream_throw_exception_with_errors(php_stream_error_operation *op)