From: jkitching at mailbolt dot com Operating system: Linux plebb 2.4.20 #15 Sat May 1 PHP version: 4.3.2 PHP Bug Type: Output Control Bug description: CLI buffers when it's not supposed to.
At http://ca2.php.net/features.commandline it says this: " There are certain php.ini directives which are overriden by the CLI SAPI because they do not make sense in shell environments: " Then it lists the overriden php.ini directives, which includes inplicit_flush, defaulting it to true. So theoretically, CLI shouldn't buffer. This is true with the RC releases of 4.3.2, but with the final release, it BUFFERS! And I mean it really buffers. I tried flush() and ob_implicit_flush();, but it still only outputs at the end of the script. Here is a sample script: <?php echo 'This should be printed immediately.'; sleep(5); ?> When executing this script at the command line, it outputs "This should be printed immediately." after a wait of 5 seconds. This tells us that it is buffering. I hope someone would email me if this program acts differently on their computer, or if the bug is fixed. My email is [EMAIL PROTECTED] -- Edit bug report at http://bugs.php.net/?id=23926&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23926&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23926&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23926&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23926&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23926&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23926&r=support Expected behavior: http://bugs.php.net/fix.php?id=23926&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23926&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23926&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23926&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23926&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23926&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23926&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23926&r=gnused
