$this->_stdErr = stream_get_contents($pipes[2]); $this->_stdOut = stream_get_contents($pipes[1]); Environment: Windows XAMPP Have to swap these two lines, https://stackoverflow.com/questions/31194152/proc-open-hangs-when-trying-to-read-from-a-stream