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]);