From: Operating system: PHP version: 5.3.8 Package: Output Control Bug Type: Feature/Change Request Bug description:Add way to specify output buffering chunk size of 1
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. -- Edit bug report at https://bugs.php.net/bug.php?id=60243&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=60243&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=60243&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=60243&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=60243&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=60243&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=60243&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=60243&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=60243&r=needscript Try newer version: https://bugs.php.net/fix.php?id=60243&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=60243&r=support Expected behavior: https://bugs.php.net/fix.php?id=60243&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=60243&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=60243&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=60243&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=60243&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=60243&r=dst IIS Stability: https://bugs.php.net/fix.php?id=60243&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=60243&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=60243&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=60243&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=60243&r=mysqlcfg