|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-06-09 03:47 UTC] rasmus@php.net
-Status: Open
+Status: Analyzed
[2013-06-09 03:47 UTC] rasmus@php.net
[2013-06-09 04:14 UTC] m00n dot silv3r at gmail dot com
[2013-06-09 04:20 UTC] rasmus@php.net
[2013-06-09 04:50 UTC] m00n dot silv3r at gmail dot com
[2013-06-09 04:56 UTC] rasmus@php.net
[2013-06-09 04:57 UTC] m00n dot silv3r at gmail dot com
[2013-06-09 05:04 UTC] rasmus@php.net
-Status: Analyzed
+Status: Not a bug
[2013-06-09 05:04 UTC] rasmus@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 07:00:01 2025 UTC |
Description: ------------ Here is the program ----------------------------------- ini_set('output_buffering', 0); // Implicitly flush the buffer(s) ini_set('implicit_flush', true); ob_implicit_flush(true); header('Content-Type: text/event-stream'); header('Cache-Control: no-cache'); // recommended to prevent caching of event data. //Should output step by step in realtime for($i = 0; $i < 10; $i++) { echo sleep(1) . 'Ting'; ob_flush(); flush(); } -------------------------------------- When opened in browser, it should output data in realtime, with each echo statement. However it is outputting only after script execution completes. Tested on Apache 2.2.22 + Php running as cgi, and with mod_fastcgi Php CLI works as expected. This happens on Php 5.4.x