New Compile - Buffering Issues
| From: | Jonathan Hilgeman | Date: | Mon, 22 Jul 2002 16:29:14 +0000 |
| Subject: | New Compile - Buffering Issues | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-7856@lists.php.net to get a copy of this message | ||
This might be a little off the topic of installations, but since it occurred just after a new
compile...
I just compiled 4.2.1 CGI so I can use it to create command-line system tools. Now, one of my tools
opens up a socket to a mail host, and reads all the messages and closes the socket. I have print
statements in my code to display the output as it streams in, but for some reason, PHP wants to
buffer the output or something, and flush() doesn't want to work, either. I know for sure that
there is output to be displayed, because I can place die() statements early in the code to see the
output of previous print statements.
For instance:
<?
print "Testing 123\n";
flush();
// Some other long code down here that takes a few minutes to process
?>
... does not work. The output will be held until the entire program is finished (a few minutes).
Why is this happening? I never had this issue with 4.0.6 ... Is it a configuration issue with
buffering or garbage collecting or something?
- Jonathan