Skip to content

Commit f10332a

Browse files
committed
Minor reword
1 parent 0227be2 commit f10332a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

components/process.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ when executing the command.
4141

4242
The ``getOutput()`` method always returns the whole content of the standard
4343
output of the command and ``getErrorOutput()`` the content of the error
44-
output.Alternatively, the :method:`Symfony\\Component\\Process\\Process::getIncrementalOutput`
44+
output. Alternatively, the :method:`Symfony\\Component\\Process\\Process::getIncrementalOutput`
4545
and :method:`Symfony\\Component\\Process\\Process::getIncrementalErrorOutput`
4646
methods return the new output since the last call.
4747

@@ -152,7 +152,11 @@ anonymous function to the
152152
}
153153
});
154154

155-
If this is not working, it can be that your server has an output buffer, that means your Server is not giving the information to the browser, so Symfony can't display it. You can use ``ob_flush()`` and ``flush()`` in combination with ``sleep()`` to avoid this in this process. Or change ``output_buffering`` in php.ini to change it globally.
155+
.. note::
156+
157+
This feature won't work as expected in servers using PHP output buffering.
158+
In those cases, either disable the `output_buffering`_ PHP option or use the
159+
:phpfunction:`ob_flush` PHP function to force sending the output buffer.
156160

157161
Running Processes Asynchronously
158162
--------------------------------
@@ -440,3 +444,4 @@ absolute path of the executable PHP binary available on your server::
440444

441445
.. _`pid`: https://en.wikipedia.org/wiki/Process_identifier
442446
.. _`PHP streams`: https://www.php.net/manual/en/book.stream.php
447+
.. _`output_buffering`: https://www.php.net/manual/en/outcontrol.configuration.php

0 commit comments

Comments
 (0)