Skip to content

Commit a7b38c8

Browse files
JWPapijaviereguiluz
authored andcommitted
Additional help with Real-Time Output
I have seen quite some issuse and questions. I think its quite common that php.ini is not allowing real-time output. So the hint helps probably some people
1 parent 4b76812 commit a7b38c8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

components/process.rst

Lines changed: 3 additions & 1 deletion
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,6 +152,8 @@ 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.
156+
155157
Running Processes Asynchronously
156158
--------------------------------
157159

0 commit comments

Comments
 (0)