From e238c893e975598f66f66349a3b1e2c374cb8c0b Mon Sep 17 00:00:00 2001 From: Florian Morello Date: Mon, 8 Apr 2019 17:40:55 +0200 Subject: [PATCH] Fix missing $extraDirs when open_basedir returns --- src/Symfony/Component/Process/ExecutableFinder.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Component/Process/ExecutableFinder.php b/src/Symfony/Component/Process/ExecutableFinder.php index a621fc6918e5..11ef5c8b2281 100644 --- a/src/Symfony/Component/Process/ExecutableFinder.php +++ b/src/Symfony/Component/Process/ExecutableFinder.php @@ -51,7 +51,10 @@ public function addSuffix($suffix) public function find($name, $default = null, array $extraDirs = []) { if (ini_get('open_basedir')) { - $searchPath = explode(PATH_SEPARATOR, ini_get('open_basedir')); + $searchPath = array_merge( + explode(PATH_SEPARATOR, ini_get('open_basedir')), + $extraDirs + ); $dirs = []; foreach ($searchPath as $path) { // Silencing against https://bugs.php.net/69240