#49714 [Opn->Bgs]: ob_end_flush() in FastCGI causes notice
| From: | jani@php.net | Date: | Thu, 01 Oct 2009 16:18:56 +0000 |
| Subject: | #49714 [Opn->Bgs]: ob_end_flush() in FastCGI causes notice | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-143140@lists.php.net to get a copy of this message | ||
ID: 49714
Updated by: jani@php.net
-Summary: ob_end_flush() in FastCGI failed.
Reported By: langwanluo at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Output Control
Operating System: linux
PHP Version: 5.*, 6
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[2009-09-29 18:01:18] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49714&edit=1