#21250 [Fbk->Opn]: echo output is blocked when using system(), exec(), backticks, etc.
| From: | adam at ripcord dot net | Date: | Sat, 28 Dec 2002 18:00:53 +0000 |
| Subject: | #21250 [Fbk->Opn]: echo output is blocked when using system(), exec(), backticks, etc. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-28610@lists.php.net to get a copy of this message | ||
ID: 21250
User updated by: adam@ripcord.net
Reported By: adam@ripcord.net
-Status: Feedback
+Status: Open
Bug Type: Output Control
Operating System: OpenBSD 3.0
PHP Version: 4.3.0
New Comment:
Thanks for pointing that out, though it wasn't the problem.
The CLI documentation leads one to believe that, by default, the PHP
CLI binary will override implicit_flush in the php.ini. This does not
seem to be the case. Making a new copy of php.ini in a different
directory and setting implicit_flush=On (along with
output_buffering=Off for good measure) did the trick.
Bug? Incorrect documentation? Even more user stupidity? :)
Previous Comments:
------------------------------------------------------------------------
[2002-12-28 11:21:01] iliaa@php.net
Check your php.ini, you probably have output buffering enabled.
------------------------------------------------------------------------
[2002-12-28 11:19:46] adam@ripcord.net
A script that I have which automates the building of Apache + PHP +
ModSSL is showing strange behavior with PHP 4.3.0.
This script works fine with 4.2.x (CGI), but as soon as I upgraded to
4.3.0 (CLI), all output from echo is blocked until the commands that I
run through my many calls to system() are complete. The new CLI docs
say that implicit flush is on by default with the CLI, but when using
system(), exec(), or backticks this doesn't seem to be the case.
My apologies if this is mere user stupidity.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21250&edit=1