diff options
author | Antony Dovgal <tony2001@php.net> | 2005-04-28 14:34:02 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2005-04-28 14:34:02 +0000 |
commit | 06a9f28b17e9e726c3117d6c2dbefff3309dd708 (patch) | |
tree | 284f948fb43556bd4193b55a0c5a699285199950 /tests | |
parent | 8c2cda12517a9b0a728628f3e0eaea2fb41fda8a (diff) | |
download | php-git-06a9f28b17e9e726c3117d6c2dbefff3309dd708.tar.gz |
add test for bug #32828
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lang/bug32828.phpt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/lang/bug32828.phpt b/tests/lang/bug32828.phpt new file mode 100644 index 0000000000..0d88737cc0 --- /dev/null +++ b/tests/lang/bug32828.phpt @@ -0,0 +1,21 @@ +--TEST-- +Bug #32828 (Throwing exception in output_callback function with ob_start and ob_end_clean leads to segfault) +--FILE-- +<?php + +function output_handler($buffer) +{ + throw new Exception; +} + +ob_start('output_handler'); + +ob_end_clean(); +?> +--EXPECTF-- +Fatal error: Uncaught exception 'Exception' in %s:%d +Stack trace: +#0 %s(%d): output_handler('', %d) +#1 %s(%d): ob_end_clean() +#2 {main} + thrown in %s on line %d |