mirror of
https://github.com/linuxserver/Heimdall.git
synced 2025-12-17 12:23:46 +09:00
Updates to vendors etc
This commit is contained in:
17
vendor/symfony/process/PhpExecutableFinder.php
vendored
17
vendor/symfony/process/PhpExecutableFinder.php
vendored
@@ -32,15 +32,8 @@ class PhpExecutableFinder
|
||||
public function find(bool $includeArgs = true): string|false
|
||||
{
|
||||
if ($php = getenv('PHP_BINARY')) {
|
||||
if (!is_executable($php)) {
|
||||
$command = '\\' === \DIRECTORY_SEPARATOR ? 'where' : 'command -v --';
|
||||
if (\function_exists('exec') && $php = strtok(exec($command.' '.escapeshellarg($php)), \PHP_EOL)) {
|
||||
if (!is_executable($php)) {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
if (!is_executable($php) && !$php = $this->executableFinder->find($php)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (@is_dir($php)) {
|
||||
@@ -81,11 +74,17 @@ class PhpExecutableFinder
|
||||
$dirs[] = 'C:\xampp\php\\';
|
||||
}
|
||||
|
||||
if ($herdPath = getenv('HERD_HOME')) {
|
||||
$dirs[] = $herdPath.\DIRECTORY_SEPARATOR.'bin';
|
||||
}
|
||||
|
||||
return $this->executableFinder->find('php', false, $dirs);
|
||||
}
|
||||
|
||||
/**
|
||||
* Finds the PHP executable arguments.
|
||||
*
|
||||
* @return list<non-empty-string>
|
||||
*/
|
||||
public function findArguments(): array
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user