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 fa9bf2d commit 8ceaa8eCopy full SHA for 8ceaa8e
src/Symfony/Component/Process/PhpExecutableFinder.php
@@ -35,7 +35,7 @@ public function find(bool $includeArgs = true)
35
{
36
if ($php = getenv('PHP_BINARY')) {
37
if (!is_executable($php)) {
38
- $command = '\\' === \DIRECTORY_SEPARATOR ? 'where' : 'command -v';
+ $command = '\\' === \DIRECTORY_SEPARATOR ? 'where' : 'command -v --';
39
if ($php = strtok(exec($command.' '.escapeshellarg($php)), \PHP_EOL)) {
40
41
return false;
0 commit comments