Bug #15646 Updated: the flush() does not flush the output buffer
| From: | nohn@php.net | Date: | Sun, 24 Feb 2002 16:43:02 +0000 |
| Subject: | Bug #15646 Updated: the flush() does not flush the output buffer | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-956@lists.php.net to get a copy of this message | ||
ID: 15646
Updated by: nohn@php.net
Reported By: kewl@compfort.pl
Status: Analyzed
Bug Type: Output Control
Operating System: Windows 2000 SP2
PHP Version: 4.1.1
New Comment:
well..another thing... I have the same problem... but it's the same
server (apache 1.3.23, php 4.1.1 on linux). the problem occurs in ms
ie, but not in nn4 or or mozilla.
so maybe it's a browser issue
Previous Comments:
------------------------------------------------------------------------
[2002-02-24 05:55:53] yohgaki@php.net
flush feature is needed to be fixed ;)
If you really need to flush, do not use output buffering.
(Without output buffering, PHP always outputs immediately when output
is issued)
------------------------------------------------------------------------
[2002-02-21 04:55:32] kewl@compfort.pl
another $0.02: i compiled PHP succesfully using cygwin environment and
it works just fine.
------------------------------------------------------------------------
[2002-02-20 12:01:15] kewl@compfort.pl
BTW i found one bug report regarding similar problem, but the answer
blamed the webserver buffering the output.
its not the case in this situation.
------------------------------------------------------------------------
[2002-02-20 11:45:00] kewl@compfort.pl
here is the code i ran with command-line version of php:
<?
$asd=0; do { printf("asd: %d\n",$asd); flush(); sleep(1); $asd++;}while
($asd<5);
?>
if it is executed on linux, it works as expected, that is it displays
asd every second.
on windows though, i only see the whole output after 5 seconds.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=15646&edit=1