xref: /PHP-8.3/Zend/tests/bug63206_2.phpt (revision 5dafd7b4)
1--TEST--
2Bug #63206 Fully support exception_handler stacking, even with null
3--FILE--
4<?php
5
6set_exception_handler(function() {
7    echo 'First handler' . PHP_EOL;
8});
9
10set_exception_handler(function() {
11    echo 'Second handler' . PHP_EOL;
12});
13
14set_exception_handler(null);
15
16set_exception_handler(function() {
17    echo 'Fourth handler' . PHP_EOL;
18});
19
20restore_exception_handler();
21restore_exception_handler();
22
23throw new Exception();
24?>
25--EXPECT--
26Second handler
27