This commit is contained in:
Fabien Potencier 2019-04-08 18:15:54 +02:00
parent 6a5eac7150
commit b93d2bf941
1 changed files with 1 additions and 4 deletions

View File

@ -51,10 +51,7 @@ class ExecutableFinder
public function find($name, $default = null, array $extraDirs = [])
{
if (ini_get('open_basedir')) {
$searchPath = array_merge(
explode(PATH_SEPARATOR, ini_get('open_basedir')),
$extraDirs
);
$searchPath = array_merge(explode(PATH_SEPARATOR, ini_get('open_basedir')), $extraDirs);
$dirs = [];
foreach ($searchPath as $path) {
// Silencing against https://bugs.php.net/69240