mirror of
https://github.com/php/php-src.git
synced 2026-04-26 17:38:14 +02:00
Files
a1ab7bbc3a4cdafa73264ac428ddd3af7217c8a3
T
27 lines
464 B
PHP
27 lines
464 B
PHP
--TEST--
|
|
Bug #63206 Fully support exception_handler stacking, even with null
|
|
--FILE--
|
|
<?php
|
|
|
|
set_exception_handler(function() {
|
|
echo 'First handler' . PHP_EOL;
|
|
});
|
|
|
|
set_exception_handler(function() {
|
|
echo 'Second handler' . PHP_EOL;
|
|
});
|
|
|
|
set_exception_handler(null);
|
|
|
|
set_exception_handler(function() {
|
|
echo 'Fourth handler' . PHP_EOL;
|
|
});
|
|
|
|
restore_exception_handler();
|
|
restore_exception_handler();
|
|
|
|
throw new Exception();
|
|
?>
|
|
--EXPECT--
|
|
Second handler
|