[Process] Check PHP_BINDIR before $PATH in PhpExecutableFinder
This commit is contained in:
parent
478fbdc241
commit
3a470c4ecf
@ -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\\';
|
||||
|
Reference in New Issue
Block a user