#21250 [Opn->Csd]: echo output is blocked when using system(), exec(), backticks, etc.

From: Date: Sun, 29 Dec 2002 10:39:27 +0000
Subject: #21250 [Opn->Csd]: echo output is blocked when using system(), exec(), backticks, etc.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-28654@lists.php.net to get a copy of this message
ID: 21250 Updated by: edink@php.net Reported By: adam@ripcord.net -Status: Open +Status: Closed Bug Type: Output Control Operating System: OpenBSD 3.0 PHP Version: 4.3.0 New Comment: imlicit_flush and output_buffering are two unrelated things, but this fact has been known to confuse even seasoned php developers :) In 4.3.0 you can have php-cli.ini (or php-{sapi}.ini) which can help configure different sapi's in different ways. Previous Comments: ------------------------------------------------------------------------ [2002-12-28 12:00:52] adam@ripcord.net 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? :) ------------------------------------------------------------------------ [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

« previous php.bugs (#28654) next »