amphp / byte-stream

A non-blocking stream abstraction for PHP based on Amp.
https://amphp.org/byte-stream
MIT License
363 stars 31 forks source link

Return closed stream if STDIO stream is closed #107

Closed trowski closed 1 year ago

trowski commented 1 year ago

This modifies getStdin(), getStdout(), and getStderr() to return an already closed stream if the corresponding resource has been previously closed.