Skip to content

Commit

Permalink
Fix missing $extraDirs when open_basedir returns
Browse files Browse the repository at this point in the history
  • Loading branch information
arsonik committed Apr 8, 2019
1 parent fa308e2 commit 82156bc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Symfony/Component/Process/ExecutableFinder.php
Expand Up @@ -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
Expand Down

0 comments on commit 82156bc

Please sign in to comment.