#32828 [Ver->Csd]: Throwing exception in output_callback function with ob_start and ob_end_clean
| From: | tony2001@php.net | Date: | Thu, 28 Apr 2005 14:21:05 +0000 |
| Subject: | #32828 [Ver->Csd]: Throwing exception in output_callback function with ob_start and ob_end_clean | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-78375@lists.php.net to get a copy of this message | ||
ID: 32828
Updated by: tony2001@php.net
Reported By: rbro at hotmail dot com
-Status: Verified
+Status: Closed
Bug Type: Reproducible crash
Operating System: *
PHP Version: 5.0,5.1 CVS (2005-04-26)
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2005-04-26 00:52:03] rbro at hotmail dot com
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 this bug report at http://bugs.php.net/?id=32828&edit=1