summaryrefslogtreecommitdiff
path: root/tests/lang/bug23279.phpt
blob: 78d7850ff4cc795b611c87166839e0fdbc20b896 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--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