From b0c0bf3ce49a01bd7ddbe07a9bed4ba85b869fa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20H=C3=A4rtl?= Date: Thu, 9 Feb 2017 19:28:47 +0100 Subject: [PATCH] Revert "Issue #20 Read stderr before stdout to avoid hanging processes" This reverts commit a628505cd99b201375dd6bcd0b062ee07c8ba556. --- src/Command.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Command.php b/src/Command.php index 5432c5a..0e09bc5 100644 --- a/src/Command.php +++ b/src/Command.php @@ -315,9 +315,8 @@ public function execute() if (is_resource($process)) { - // Issue #20: Read stderr before stdout to avoid hanging processes - $this->_stdErr = stream_get_contents($pipes[2]); $this->_stdOut = stream_get_contents($pipes[1]); + $this->_stdErr = stream_get_contents($pipes[2]); fclose($pipes[1]); fclose($pipes[2]);