mirror of
https://github.com/php/php-src.git
synced 2024-09-23 19:07:26 +00:00
2f1f34952e
I'm removing the argument entirely here, but we might want to change this to passing null or and empty array instead, if the impact of dropping it entirely turns out to be too large. This was deprecated as part of https://wiki.php.net/rfc/deprecations_php_7_2 as a doc-only deprecation.
25 lines
750 B
PHP
25 lines
750 B
PHP
--TEST--
|
|
Bug #60909 (custom error handler throwing Exception + fatal error = no shutdown function).
|
|
--FILE--
|
|
<?php
|
|
register_shutdown_function(function(){echo("\n\n!!!shutdown!!!\n\n");});
|
|
set_error_handler(function($errno, $errstr, $errfile, $errline){
|
|
echo "error($errstr)";
|
|
throw new Exception("Foo");
|
|
});
|
|
|
|
require 'notfound.php';
|
|
--EXPECTF--
|
|
error(require(notfound.php): failed to open stream: %s)
|
|
Warning: Uncaught Exception: Foo in %sbug60909_1.php:5
|
|
Stack trace:
|
|
#0 %sbug60909_1.php(8): {closure}(2, 'require(notfoun...', '%s', 8)
|
|
#1 %sbug60909_1.php(8): require()
|
|
#2 {main}
|
|
thrown in %sbug60909_1.php on line 5
|
|
|
|
Fatal error: main(): Failed opening required 'notfound.php' (include_path='%s') in %sbug60909_1.php on line 8
|
|
|
|
|
|
!!!shutdown!!!
|