ID: 35156 Updated by: [EMAIL PROTECTED] Reported By: php at kloopy dot com -Status: Open +Status: Feedback Bug Type: Output Control Operating System: Win32 and Linux PHP Version: 4.4.1 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2005-11-08 16:35:25] php at kloopy dot com Description: ------------ When setting an output buffer that returns an empty string (I do have a good reason for doing this), later calls to ob_flush() cause PHP to seg fault. Tested on PHP-4.1.1 on linux (CLI and Apache2 module) with same error on both. Also tested on PHP-5.0.5 on Win32 (CLI and Apache2 module) with same error on both. Reproduce code: --------------- <?php function nooutput($text) { return ""; } print "Before\n"; ob_start("nooutput"); print "Middle\n"; ob_flush(); ob_end_flush(); print "After\n"; ?> Expected result: ---------------- Before After Actual result: -------------- Before Segmentation fault ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=35156&edit=1