Permit empty suffix on Windows
This commit is contained in:
parent
85ae59a15b
commit
412db4ca51
@ -75,7 +75,7 @@ class ExecutableFinder
|
|||||||
$suffixes = array('');
|
$suffixes = array('');
|
||||||
if ('\\' === DIRECTORY_SEPARATOR) {
|
if ('\\' === DIRECTORY_SEPARATOR) {
|
||||||
$pathExt = getenv('PATHEXT');
|
$pathExt = getenv('PATHEXT');
|
||||||
$suffixes = $pathExt ? explode(PATH_SEPARATOR, $pathExt) : $this->suffixes;
|
$suffixes = array_merge($suffixes, $pathExt ? explode(PATH_SEPARATOR, $pathExt) : $this->suffixes);
|
||||||
}
|
}
|
||||||
foreach ($suffixes as $suffix) {
|
foreach ($suffixes as $suffix) {
|
||||||
foreach ($dirs as $dir) {
|
foreach ($dirs as $dir) {
|
||||||
|
Reference in New Issue
Block a user