🔧
This commit is contained in:
2
vendor/symfony/process/ExecutableFinder.php
vendored
2
vendor/symfony/process/ExecutableFinder.php
vendored
@@ -73,7 +73,7 @@ class ExecutableFinder
|
||||
}
|
||||
|
||||
$command = '\\' === \DIRECTORY_SEPARATOR ? 'where' : 'command -v';
|
||||
if (\function_exists('exec') && ($executablePath = strtok(@exec($command.' '.escapeshellarg($name)), \PHP_EOL)) && is_executable($executablePath)) {
|
||||
if (\function_exists('exec') && ($executablePath = strtok(@exec($command.' '.escapeshellarg($name)), \PHP_EOL)) && @is_executable($executablePath)) {
|
||||
return $executablePath;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user