|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2011-11-08 15:16 UTC] artificialmagic at hotmail dot com
Description: ------------ ob_implicit_flush does not do anything in CLI. This script never produces output: ob_start(); ob_implicit_flush(true); for (;;) echo '.'; A 1-byte buffer would work around it, except that specifying a chunk_size of 1 to ob_start is taken to mean 4 kilobytes. As a workaround, please make a chunk_size of -1 to ob_start a synonym for a real 1, so that output buffering can be used for filtering or for redirection without actual delay in output. Currently the smallest size that can be specified is 2 bytes, which can cause a potentially infinite wait for an extra byte. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 22 16:00:01 2025 UTC |
Here's a proper test script. This produces [4096][4096][4096][4096][4096]... ob_start(function($x) { return '[' . strlen($x) . ']'; }, 1); for (;;) echo '.'; So I'd like this to produce [1][1][1][1][1][1].... ob_start(function($x) { return '[' . strlen($x) . ']'; }, -1); for (;;) echo '.';