diff --git a/src/io/_Private/NativeHandle.php b/src/io/_Private/NativeHandle.php index 87b06658..03747975 100644 --- a/src/io/_Private/NativeHandle.php +++ b/src/io/_Private/NativeHandle.php @@ -83,7 +83,7 @@ final public function rawReadBlocking(?int $max_bytes = null): string { $max_bytes -= Str\length($chunk); } if ($max_bytes === null || $max_bytes > 0) { - await $this->selectAsync(\STREAM_AWAIT_READ | \STREAM_AWAIT_ERROR); + await $this->selectAsync(\STREAM_AWAIT_READ); } } return $data; @@ -111,7 +111,7 @@ final public function rawReadBlocking(?int $max_bytes = null): string { } $data = $impl(); while ($data === false && !$this->isEndOfFile()) { - await $this->selectAsync(\STREAM_AWAIT_READ | \STREAM_AWAIT_ERROR); + await $this->selectAsync(\STREAM_AWAIT_READ); $data = $impl(); } return $data === false ? '' : $data; @@ -136,7 +136,7 @@ final public function writeAsync(string $bytes): Awaitable { if ($bytes === '') { break; } - await $this->selectAsync(\STREAM_AWAIT_WRITE | \STREAM_AWAIT_ERROR); + await $this->selectAsync(\STREAM_AWAIT_WRITE); } }); }