2 Bug #63206 Fully support exception_handler stacking, even with null
6 set_exception_handler(function() {
7 echo 'First handler' . PHP_EOL;
10 set_exception_handler(function() {
11 echo 'Second handler' . PHP_EOL;
14 set_exception_handler(null);
16 set_exception_handler(function() {
17 echo 'Fourth handler' . PHP_EOL;
20 restore_exception_handler();
21 restore_exception_handler();
23 throw new Exception();