mirror of
https://github.com/php/php-src.git
synced 2026-04-19 14:01:01 +02:00
Files
e9cf14e89cb5e589c54c3bc2fc72decb481e4366
30 lines
582 B
PHP
30 lines
582 B
PHP
--TEST--
|
|
Bug #63206 Fully support error_handler stacking, even inside the error_handler
|
|
--FILE--
|
|
<?php
|
|
|
|
set_error_handler(function() {
|
|
echo 'First handler' . PHP_EOL;
|
|
});
|
|
|
|
set_error_handler(function() {
|
|
echo 'Second handler' . PHP_EOL;
|
|
|
|
set_error_handler(function() {
|
|
echo 'Internal handler' . PHP_EOL;
|
|
});
|
|
|
|
$triggerInternalNotice++; // warnings while handling the error should go into internal handler
|
|
|
|
restore_error_handler();
|
|
});
|
|
|
|
$triggerNotice1++;
|
|
$triggerNotice2++;
|
|
?>
|
|
--EXPECT--
|
|
Second handler
|
|
Internal handler
|
|
Second handler
|
|
Internal handler
|