Supress error from fread when reading a unix pipe

This commit is contained in:
Michel Bardelmeijer 2020-04-07 21:12:26 +02:00
parent 0506f8ce2b
commit b98abde65a
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ class UnixPipes extends AbstractPipes
$read[$type = array_search($pipe, $this->pipes, true)] = '';
do {
$data = fread($pipe, self::CHUNK_SIZE);
$data = @fread($pipe, self::CHUNK_SIZE);
$read[$type] .= $data;
} while (isset($data[0]) && ($close || isset($data[self::CHUNK_SIZE - 1])));