We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 796fff2 commit f5fd55aCopy full SHA for f5fd55a
src/Symfony/Component/Process/ExecutableFinder.php
@@ -71,7 +71,7 @@ public function find(string $name, ?string $default = null, array $extraDirs = [
71
}
72
73
$command = '\\' === \DIRECTORY_SEPARATOR ? 'where' : 'command -v --';
74
- 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)) {
75
return $executablePath;
76
77
0 commit comments