Skip to content

Commit db1fbdf

Browse files
dingo-dmpociot
andcommitted
Fix the php executable to handle folder name with spaces
As reported in beyondcode/herd-community#631. Co-authored-by: Marcel Pociot <[email protected]>
1 parent 5b45d93 commit db1fbdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Process/Process.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function __construct($executable, array $arguments = array(), $stdInInput
4545
self::STDERR => array('pipe', self::WRITE),
4646
);
4747

48-
$cmdLine = $executable . ' ' . implode(' ', array_map('escapeshellarg', $arguments));
48+
$cmdLine = '"' . $executable . '" ' . implode(' ', array_map('escapeshellarg', $arguments));
4949
$this->process = proc_open($cmdLine, $descriptors, $pipes, null, null, array('bypass_shell' => true));
5050

5151
if ($this->process === false || $this->process === null) {

0 commit comments

Comments
 (0)