Fix incorrectly calling PHP process on Windows when path contains space

This commit is contained in:
maryo 2017-05-02 20:15:06 +02:00
parent 85e2d2f91d
commit 9c08109739

View File

@ -36,10 +36,10 @@ class PhpProcess extends Process
public function __construct($script, $cwd = null, array $env = null, $timeout = 60, array $options = null)
{
$executableFinder = new PhpExecutableFinder();
if (false === $php = $executableFinder->find()) {
if (false === $php = $executableFinder->find(false)) {
$php = null;
} else {
$php = explode(' ', $php);
$php = array_merge(array($php), $executableFinder->findArguments());
}
if ('phpdbg' === PHP_SAPI) {
$file = tempnam(sys_get_temp_dir(), 'dbg');