From b98abde65a65b1ba4dbab6ec187bb48ebd0a94cb Mon Sep 17 00:00:00 2001 From: Michel Bardelmeijer Date: Tue, 7 Apr 2020 21:12:26 +0200 Subject: [PATCH] Supress error from fread when reading a unix pipe --- src/Symfony/Component/Process/Pipes/UnixPipes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Process/Pipes/UnixPipes.php b/src/Symfony/Component/Process/Pipes/UnixPipes.php index 603d726b47..70fdd29574 100644 --- a/src/Symfony/Component/Process/Pipes/UnixPipes.php +++ b/src/Symfony/Component/Process/Pipes/UnixPipes.php @@ -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])));