Avoid Buffering of Shell output
- this can be misinterpreted as a hanging / slow program
- this can cause exceeding memory limits
- users don't understand it.
Therefore i suggest to output the CLI output directly!
I made it working with AOP, afterwards you may need some additional cleaning in the other CLI\Response methods, which are useless after the patch ;)
Updated by Bastian Waidelich almost 8 years ago
- PHP Version deleted (
Good point. But instead of changing the behavior, I'd suggest to add a flag to the output* methods that forces direct rendering (for backwards compatibility reasons).
BTW: Instead of using AOP you could also override these methods in your package: https://gist.github.com/bwaidelich/8536527