From a7b38c887f5109081776a65c1107b63e3007049e Mon Sep 17 00:00:00 2001 From: Julian Wagner Date: Fri, 20 Sep 2019 23:11:55 -0700 Subject: [PATCH] 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 --- components/process.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/process.rst b/components/process.rst index 9e50196625a..307a3afcb3e 100644 --- a/components/process.rst +++ b/components/process.rst @@ -41,7 +41,7 @@ when executing the command. The ``getOutput()`` method always returns the whole content of the standard output of the command and ``getErrorOutput()`` the content of the error -output. Alternatively, the :method:`Symfony\\Component\\Process\\Process::getIncrementalOutput` +output.Alternatively, the :method:`Symfony\\Component\\Process\\Process::getIncrementalOutput` and :method:`Symfony\\Component\\Process\\Process::getIncrementalErrorOutput` methods return the new output since the last call. @@ -152,6 +152,8 @@ anonymous function to the } }); +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. + Running Processes Asynchronously --------------------------------