#32828 [Opn->Ver]: Throwing exception in output_callback function with ob_start and ob_end_clean

From: Date: Tue, 26 Apr 2005 06:18:36 +0000
Subject: #32828 [Opn->Ver]: 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-78193@lists.php.net to get a copy of this message
ID: 32828 Updated by: sniper@php.net Reported By: rbro at hotmail dot com -Status: Open +Status: Verified -Bug Type: Output Control +Bug Type: Reproducible crash -Operating System: Linux +Operating System: * -PHP Version: 5.0.4 +PHP Version: 5.0,5.1 CVS (2005-04-26) 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

« previous php.bugs (#78193) next »