From ce1132c7c2e215efdf50934632cf391c3c7a0838 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20L=C3=BCck?= Date: Fri, 18 Aug 2017 15:22:19 +0200 Subject: [PATCH] Remove now unneeded buffer workaround for legacy PHP < 5.4 --- src/Process.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/Process.php b/src/Process.php index db9eacf..80dac52 100644 --- a/src/Process.php +++ b/src/Process.php @@ -130,13 +130,6 @@ public function start(LoopInterface $loop, $interval = 0.1) $this->stdout->on('close', $streamCloseHandler); $this->stderr = new ReadableResourceStream($this->pipes[2], $loop); $this->stderr->on('close', $streamCloseHandler); - - // legacy PHP < 5.4 SEGFAULTs for unbuffered, non-blocking reads - // work around by enabling read buffer again - if (PHP_VERSION_ID < 50400) { - stream_set_read_buffer($this->pipes[1], 1); - stream_set_read_buffer($this->pipes[2], 1); - } } /**