|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-11-08 16:50 UTC] tony2001@php.net
[2005-11-08 17:13 UTC] php at kloopy dot com
[2005-11-08 17:21 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 19:00:02 2025 UTC |
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