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






--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to