Update dependencies

This commit is contained in:
Kode
2022-06-29 13:20:08 +01:00
parent bbae811cd8
commit e2ba89c80e
349 changed files with 21017 additions and 4079 deletions

View File

@@ -45,6 +45,10 @@ class PhpExecutableFinder
}
}
if (@is_dir($php)) {
return false;
}
return $php;
}
@@ -57,7 +61,7 @@ class PhpExecutableFinder
}
if ($php = getenv('PHP_PATH')) {
if (!@is_executable($php)) {
if (!@is_executable($php) || @is_dir($php)) {
return false;
}
@@ -65,12 +69,12 @@ class PhpExecutableFinder
}
if ($php = getenv('PHP_PEAR_PHP_BIN')) {
if (@is_executable($php)) {
if (@is_executable($php) && !@is_dir($php)) {
return $php;
}
}
if (@is_executable($php = \PHP_BINDIR.('\\' === \DIRECTORY_SEPARATOR ? '\\php.exe' : '/php'))) {
if (@is_executable($php = \PHP_BINDIR.('\\' === \DIRECTORY_SEPARATOR ? '\\php.exe' : '/php')) && !@is_dir($php)) {
return $php;
}