8000 [Process] Fixes issue #11421 · symfony/symfony@02eb765 · GitHub
[go: up one dir, main page]

Skip to content

Commit 02eb765

Browse files
author
Ben
committed
[Process] Fixes issue #11421
1 parent 9572918 commit 02eb765

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Symfony/Component/Process/ExecutableFinder.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ public function find($name, $default = null, array $extraDirs = array())
5959
if (is_dir($path)) {
6060
$dirs[] = $path;
6161
} else {
62-
$file = str_replace(dirname($path), '', $path);
63-
if ($file == $name && is_executable($path)) {
62+
if (basename($path) == $name && is_executable($path)) {
6463
return $path;
6564
}
6665
}

0 commit comments

Comments
 (0)
0