diff --git a/src/future/exec/ExecFuture.php b/src/future/exec/ExecFuture.php --- a/src/future/exec/ExecFuture.php +++ b/src/future/exec/ExecFuture.php @@ -599,24 +599,7 @@ } do { - $real_length = $length; - - // On Windows, we must check to see if we can read without blocking - // from the stream, and even then we must read only 1 byte at a time. - if ($this->useWindowsFileStreams) { - $r = array($stream); - $w = array(); - $e = array(); - if (false === stream_select($r, $w, $e, 0)) { - throw new Exception('stream_select() failed'); - } - $real_length = 0; - if (in_array($stream, $r)) { - $real_length = 1; - } - } - - $data = fread($stream, min($real_length, 64 * 1024)); + $data = fread($stream, min($length, 64 * 1024)); if (false === $data) { throw new Exception('Failed to read from '.$description); }