php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18331 ob_implicit_flush(true) no longer working
Submitted: 2002-07-13 13:16 UTC Modified: 2002-09-21 18:27 UTC
From: cox at idecnet dot com Assigned:
Status: Closed Package: Output Control
PHP Version: 4.3.0-dev OS: All
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cox at idecnet dot com
New email:
PHP Version: OS:

 

 [2002-07-13 13:16 UTC] cox at idecnet dot com
<?php
ob_implicit_flush(true);
echo "start\n";
sleep(5);
?>

With PHP <= 4.1.x, I get "start" just after execute the script. With PHP 4.2.1 CGI I have to wait 5 seconds before get any output. The problem is not reproduceable with CLI under Linux but CLI under Windows have it.

Tomas V.V.Cox

PS.- You need to have output_buffering=4096 and inmplicit_flush=Off in you php.ini to reproduce this problem.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-13 22:49 UTC] sniper@php.net
Reproduced in Linux with CLI..

 [2002-07-15 21:55 UTC] yohgaki@php.net
Someone needs to implement implicit flush for neseted output buffers as I post it to php-dev, today....
 [2002-09-21 18:27 UTC] iliaa@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

Seems to have been fixed. Unable to replicate the problem on Linux or Windows using latest CVS.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 16:01:29 2024 UTC