I would like to invoke a child process in PHP, in non-blocking manner, and point both stdout and stderr into the same pipe, so that lines on both stdout and stderr appear together in their order of generation, as if executed on a console.
Pointing both at a temp file would be highly undesirable.
The process is single-threaded, so no simultaneous calls to write() expected. Naturally, I'd like to capture the process' output.