diff options
Diffstat (limited to 'tests/lang/bug23279.phpt')
-rw-r--r-- | tests/lang/bug23279.phpt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/lang/bug23279.phpt b/tests/lang/bug23279.phpt new file mode 100644 index 0000000..78d7850 --- /dev/null +++ b/tests/lang/bug23279.phpt @@ -0,0 +1,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 |