Skip to content

Commit 9c08109

Browse files
committed
Fix incorrectly calling PHP process on Windows when path contains space
1 parent 85e2d2f commit 9c08109

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Process/PhpProcess.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ class PhpProcess extends Process
3636
public function __construct($script, $cwd = null, array $env = null, $timeout = 60, array $options = null)
3737
{
3838
$executableFinder = new PhpExecutableFinder();
39-
if (false === $php = $executableFinder->find()) {
39+
if (false === $php = $executableFinder->find(false)) {
4040
$php = null;
4141
} else {
42-
$php = explode(' ', $php);
42+
$php = array_merge(array($php), $executableFinder->findArguments());
4343
}
4444
if ('phpdbg' === PHP_SAPI) {
4545
$file = tempnam(sys_get_temp_dir(), 'dbg');

0 commit comments

Comments
 (0)