mirror of
https://github.com/php/php-src.git
synced 2024-12-01 22:03:36 +08:00
17 lines
310 B
PHP
17 lines
310 B
PHP
--TEST--
|
|
Bug #23279 (exception handler stops after first function call)
|
|
--FILE--
|
|
<?php
|
|
ob_start();
|
|
set_exception_handler('redirect_on_error');
|
|
echo "Hello World\n";
|
|
throw new Exception;
|
|
|
|
function redirect_on_error($e) {
|
|
ob_end_clean();
|
|
echo "Goodbye Cruel World\n";
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
Goodbye Cruel World
|