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)