2 Bug #63206 Fully support error_handler stacking, even inside the error_handler
6 set_error_handler(function() {
7 echo 'First handler' . PHP_EOL;
10 set_error_handler(function() {
11 echo 'Second handler' . PHP_EOL;
13 set_error_handler(function() {
14 echo 'Internal handler' . PHP_EOL;
17 $triggerInternalNotice++; // warnings while handling the error should go into internal handler
19 restore_error_handler();