Skip to content

Commit 0227be2

Browse files
committed
minor #12349 Additional help with Real-Time Output (JWPapi)
This PR was submitted for the 4.3 branch but it was merged into the 3.4 branch instead (closes #12349). Discussion ---------- 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 <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- a7b38c8 Additional help with Real-Time Output
2 parents 4b76812 + a7b38c8 commit 0227be2

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)