[Process] Check PHP_BINDIR before $PATH in PhpExecutableFinder

This commit is contained in:
Nicolas Grekas 2018-02-04 17:22:42 +01:00
parent 478fbdc241
commit 3a470c4ecf
1 changed files with 4 additions and 0 deletions

View File

@ -62,6 +62,10 @@ class PhpExecutableFinder
}
}
if (is_executable($php = PHP_BINDIR.'/php'.('\\' === DIRECTORY_SEPARATOR ? '.exe' : ''))) {
return $php;
}
$dirs = array(PHP_BINDIR);
if ('\\' === DIRECTORY_SEPARATOR) {
$dirs[] = 'C:\xampp\php\\';