ID: 23926 Updated by: [EMAIL PROTECTED] Reported By: jkitching at mailbolt dot com -Status: Open +Status: Bogus Bug Type: Output Control Operating System: Linux plebb 2.4.20 #15 Sat May 1 PHP Version: 4.3.2 New Comment:
CLI will honour output buffering directive from php.ini (this is a different issue from implicit_flush). Either remove that ini entry or run CLI with -n (ignore ini file) option. Previous Comments: ------------------------------------------------------------------------ [2003-05-31 13:35:59] jkitching at mailbolt dot com 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 this bug report at http://bugs.php.net/?id=23926&edit=1
