Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #2422 from pvolok/note_in_streamedresponse

Add note about buffering in StreamedResponse.
  • Loading branch information...
commit 678daba029381e75c3b1043c66928570381fbfed 2 parents d9becd2 + 4ec843f
@weaverryan weaverryan authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 components/http_foundation/introduction.rst
View
12 components/http_foundation/introduction.rst
@@ -387,6 +387,18 @@ represented by a PHP callable instead of a string::
});
$response->send();
+.. note::
+
+ The ``flush()`` function does not flush bufferring. So if
+ ``ob_start()`` has been called before or php.ini option
+ ``output_buffering`` is not disabled (which is on some
+ installations by default), you have to call ``ob_flush()`` before
+ ``flush()``.
+
+ But not only php can buffer output. Your web-server can also do
+ it. Even more, if you use fastcgi, buffering can't be disabled at
+ all.
+
Downloading Files
~~~~~~~~~~~~~~~~~
Please sign in to comment.
Something went wrong with that request. Please try again.