xref: /PHP-7.1/tests/lang/bug23279.phpt (revision 91ec828d)
1--TEST--
2Bug #23279 (exception handler stops after first function call)
3--FILE--
4<?php
5ob_start();
6set_exception_handler('redirect_on_error');
7echo "Hello World\n";
8throw new Exception;
9
10function redirect_on_error($e) {
11    ob_end_clean();
12    echo "Goodbye Cruel World\n";
13}
14?>
15--EXPECT--
16Goodbye Cruel World
17