Open LacticWhale opened 1 month ago
Currently this is not supported. What are you trying to do?
What are you trying to do?
I just had a program which used stdout for debug info and an additional pipe for data transfer. It's not a big problem I can move info to stderr and use stdout for data. But it would be nice to have support for this in the future.
If you control both sides, you might find the IPC API of amphp/parallel
helpful: https://github.com/amphp/parallel?tab=readme-ov-file#ipc
I use it to run programs written in different languages (python, dart). I just did:
list($command, $id, $data) = explode(':', $chunk);
Instead of using different pipes. I guess I could have done this from begining.
But still I think it might be useful to get support for pipes in future.
Is there a way to open more pipes? In normal PHP I can use proc_open to do something like this:
I couldn't find any documentation on this.