From: rbro at hotmail dot com
Operating system: Linux
PHP version: 5.0.4
PHP Bug Type: Output Control
Bug description: Throwing exception in output_callback function with ob_start
and ob_end_clean
Description:
------------
If you throw an exception inside an output_callback function as a result
of using ob_start() and ob_end_clean(), a Segmentation fault occurs.
Reproduce code:
---------------
<?php
function output_handler($buffer)
{
throw new Exception;
}
ob_start('output_handler');
ob_end_clean();
?>
Expected result:
----------------
Exception is thrown.
Actual result:
--------------
Segmentation fault
--
Edit bug report at http://bugs.php.net/?id=32828&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32828&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=32828&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=32828&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32828&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32828&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32828&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32828&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32828&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32828&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32828&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=32828&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=32828&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32828&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32828&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32828&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32828&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32828&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32828&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32828&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32828&r=mysqlcfg