php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49714 ob_end_flush() in FastCGI causes notice
Submitted: 2009-09-29 18:01 UTC Modified: 2009-10-01 16:18 UTC
From: langwanluo at gmail dot com Assigned:
Status: Not a bug Package: Output Control
PHP Version: 5.*, 6 OS: linux
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: langwanluo at gmail dot com
New email:
PHP Version: OS:

 

 [2009-09-29 18:01 UTC] langwanluo at gmail dot com
Description:
------------
This code is run the apache normal. Nginx and php-fpm in the running error. also in the php-fpm mode ob_flush() has no effect, no immediate output. I think that in two modes should hava the same effect.

Reproduce code:
---------------
<?php
 
for($i = 0; $i < 10; $i++) {
        echo $i."<br />";
        ob_end_flush();
        sleep(1);
}
 
?>

Expected result:
----------------
0
1
2
3
4
5
6
7
8
9


Actual result:
--------------
0
1
Notice: ob_end_flush(): failed to delete and flush buffer. No buffer to delete or flush. in /data/wwwroot/mybook_com/output/flush.php on line 5 2
Notice: ob_end_flush(): failed to delete and flush buffer. No buffer to delete or flush. in /data/wwwroot/mybook_com/output/flush.php on line 5 3
Notice: ob_end_flush(): failed to delete and flush buffer. No buffer to delete or flush. in /data/wwwroot/mybook_com/output/flush.php on line 5 4
Notice: ob_end_flush(): failed to delete and flush buffer. No buffer to delete or flush. in /data/wwwroot/mybook_com/output/flush.php on line 5 5
Notice: ob_end_flush(): failed to delete and flush buffer. No buffer to delete or flush. in /data/wwwroot/mybook_com/output/flush.php on line 5 6
Notice: ob_end_flush(): failed to delete and flush buffer. No buffer to delete or flush. in /data/wwwroot/mybook_com/output/flush.php on line 5 7
Notice: ob_end_flush(): failed to delete and flush buffer. No buffer to delete or flush. in /data/wwwroot/mybook_com/output/flush.php on line 5 8
Notice: ob_end_flush(): failed to delete and flush buffer. No buffer to delete or flush. in /data/wwwroot/mybook_com/output/flush.php on line 5 9
Notice: ob_end_flush(): failed to delete and flush buffer. No buffer to delete or flush. in /data/wwwroot/mybook_com/output/flush.php on line 5 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-10-01 16:18 UTC] jani@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 23:01:29 2024 UTC