]> granicus.if.org Git - php/blob
d054211638
[php] /
1 --TEST--
2 Bug #63206 Fully support error_handler stacking, even with null
3 --FILE--
4 <?php
5
6 set_error_handler(function() {
7     echo 'First handler' . PHP_EOL;
8 });
9
10 set_error_handler(function() {
11     echo 'Second handler' . PHP_EOL;
12 });
13
14 set_error_handler(null);
15
16 set_error_handler(function() {
17     echo 'Fourth handler' . PHP_EOL;
18 });
19
20 restore_error_handler();
21 restore_error_handler();
22
23 $triggerNotice++;
24 ?>
25 --EXPECT--
26 Second handler