diff --git a/src/Process/Process.php b/src/Process/Process.php index 4e72e58..a3b62c5 100644 --- a/src/Process/Process.php +++ b/src/Process/Process.php @@ -45,7 +45,7 @@ public function __construct($executable, array $arguments = array(), $stdInInput self::STDERR => array('pipe', self::WRITE), ); - $cmdLine = $executable . ' ' . implode(' ', array_map('escapeshellarg', $arguments)); + $cmdLine = '"' . $executable . '" ' . implode(' ', array_map('escapeshellarg', $arguments)); $this->process = proc_open($cmdLine, $descriptors, $pipes, null, null, array('bypass_shell' => true)); if ($this->process === false || $this->process === null) {