|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-12-27 19:34 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 11 16:00:01 2025 UTC |
Description: ------------ ob_start(), ob_flush() or for(;;) is leaky and doesn't do what it gotta do. Reproduce code: --------------- #!/usr/bin/php <?php $i = 0; for (;;) { $i++; @ob_start(); echo "Iter: $i<br />\n"; // PHP is pretty bad, it cannot even do the for cycle properly ob_flush(); } ?> Expected result: ---------------- It should be an infinite loop Actual result: -------------- ... Iter: 3067<br /> sh-3.2$