Bug #15646 Updated: the flush() does not flush the output buffer

2002-04-18 Thread norny

 ID:   15646
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Analyzed
 Bug Type: Output Control
 Operating System: Windows 2000 SP2
 PHP Version:  4.1.1
 New Comment:

I don't think this is a bug, although I do think bug #16676 is a bug.
The default configuration of php.ini automatically buffers 4k of output
whether you called ob_start() in the script or not. Since you only have
5 bytes of output, it'll fit well within the 4k of default buffering.
Instead of using plain flush(), use ob_flush(), ob_end_flush() at the
start of your script, or change the amount of default buffering in your
php.ini.

If ob_implicit_flush() worked right, you could use it just once at the
beginning of your script. See bug #16676 for discoveries with ob.


Previous Comments:


[2002-02-25 03:13:51] [EMAIL PROTECTED]

Well, I dont think its a browser nor http server issue - I do not use
any of these (as I wrote in the original post), only the command-line
version.

regards,



[2002-02-24 11:44:37] [EMAIL PROTECTED]

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



[2002-02-24 11:43:02] [EMAIL PROTECTED]

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



[2002-02-24 05:55:53] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

another $0.02: i compiled PHP succesfully using cygwin environment and
it works just fine.



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/15646

-- 
Edit this bug report at http://bugs.php.net/?id=15646edit=1




Bug #15646 Updated: the flush() does not flush the output buffer

2002-02-24 Thread nohn

 ID:   15646
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 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] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

another $0.02: i compiled PHP succesfully using cygwin environment and
it works just fine.



[2002-02-20 12:01:15] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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
($asd5);
?

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=15646edit=1




Bug #15646 Updated: the flush() does not flush the output buffer

2002-02-24 Thread nohn

 ID:   15646
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 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 11:43:02] [EMAIL PROTECTED]

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



[2002-02-24 05:55:53] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

another $0.02: i compiled PHP succesfully using cygwin environment and
it works just fine.



[2002-02-20 12:01:15] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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
($asd5);
?

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=15646edit=1




Bug #15646 Updated: the flush() does not flush the output buffer

2002-02-24 Thread kewl

 ID:   15646
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Analyzed
 Bug Type: Output Control
 Operating System: Windows 2000 SP2
 PHP Version:  4.1.1
 New Comment:

Well, I dont think its a browser nor http server issue - I do not use
any of these (as I wrote in the original post), only the command-line
version.

regards,


Previous Comments:


[2002-02-24 11:44:37] [EMAIL PROTECTED]

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



[2002-02-24 11:43:02] [EMAIL PROTECTED]

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



[2002-02-24 05:55:53] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

another $0.02: i compiled PHP succesfully using cygwin environment and
it works just fine.



[2002-02-20 12:01:15] [EMAIL PROTECTED]

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.



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/15646

-- 
Edit this bug report at http://bugs.php.net/?id=15646edit=1




Bug #15646 Updated: the flush() does not flush the output buffer

2002-02-21 Thread kewl

 ID:   15646
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Output Control
 Operating System: Windows 2000 SP2
 PHP Version:  4.1.1
 New Comment:

another $0.02: i compiled PHP succesfully using cygwin environment and
it works just fine.


Previous Comments:


[2002-02-20 12:01:15] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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
($asd5);
?

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=15646edit=1




Bug #15646 Updated: the flush() does not flush the output buffer

2002-02-20 Thread kewl

 ID:   15646
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Output Control
 Operating System: Windows 2000 SP2
 PHP Version:  4.1.1
 New Comment:

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.


Previous Comments:


[2002-02-20 11:45:00] [EMAIL PROTECTED]

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
($asd5);
?

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=15646edit=1