mirror of
https://github.com/php/php-src.git
synced 2026-04-24 08:28:26 +02:00
Files
7d3e530f4e8700a4cdfc4ff2a747d9dcb7e5e806
T
27 lines
431 B
PHP
27 lines
431 B
PHP
--TEST--
|
|
Bug #63206 Fully support error_handler stacking, even with null
|
|
--FILE--
|
|
<?php
|
|
|
|
set_error_handler(function() {
|
|
echo 'First handler' . PHP_EOL;
|
|
});
|
|
|
|
set_error_handler(function() {
|
|
echo 'Second handler' . PHP_EOL;
|
|
});
|
|
|
|
set_error_handler(null);
|
|
|
|
set_error_handler(function() {
|
|
echo 'Fourth handler' . PHP_EOL;
|
|
});
|
|
|
|
restore_error_handler();
|
|
restore_error_handler();
|
|
|
|
$triggerNotice++;
|
|
?>
|
|
--EXPECT--
|
|
Second handler
|