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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Fri Mar 14 08:01:32 2025 UTC