skip to Main Content

Php versions – Error generated by named arguments and argument unpacking in function call not throwing ErrorException in PHP-8

The following code works as expected: throws the ErrorException and calls the shutdown function for the fatal-error generated by require register_shutdown_function(function() { echo "anyway, hello worldn"; }); set_error_handler(function($severity, $message, $file, $line) { throw new ErrorException($message, 0, $severity, $file, $line); });…

VIEW QUESTION
Back To Top
Search