comparison vendor/symfony/process/ExecutableFinder.php @ 16:c2387f117808

Routine composer update
author Chris Cannam
date Tue, 10 Jul 2018 15:07:59 +0100
parents 1fec387a4317
children 129ea1e6d783
comparison
equal deleted inserted replaced
15:e200cb7efeb3 16:c2387f117808
71 } 71 }
72 72
73 $suffixes = array(''); 73 $suffixes = array('');
74 if ('\\' === DIRECTORY_SEPARATOR) { 74 if ('\\' === DIRECTORY_SEPARATOR) {
75 $pathExt = getenv('PATHEXT'); 75 $pathExt = getenv('PATHEXT');
76 $suffixes = array_merge($suffixes, $pathExt ? explode(PATH_SEPARATOR, $pathExt) : $this->suffixes); 76 $suffixes = array_merge($pathExt ? explode(PATH_SEPARATOR, $pathExt) : $this->suffixes, $suffixes);
77 } 77 }
78 foreach ($suffixes as $suffix) { 78 foreach ($suffixes as $suffix) {
79 foreach ($dirs as $dir) { 79 foreach ($dirs as $dir) {
80 if (@is_file($file = $dir.DIRECTORY_SEPARATOR.$name.$suffix) && ('\\' === DIRECTORY_SEPARATOR || is_executable($file))) { 80 if (@is_file($file = $dir.DIRECTORY_SEPARATOR.$name.$suffix) && ('\\' === DIRECTORY_SEPARATOR || @is_executable($file))) {
81 return $file; 81 return $file;
82 } 82 }
83 } 83 }
84 } 84 }
85 85