8000 bug #31012 [Process] Fix missing $extraDirs when open_basedir returns… · symfony/symfony@6a5eac7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6a5eac7

Browse files
committed
bug #31012 [Process] Fix missing $extraDirs when open_basedir returns (arsonik)
This PR was submitted for the master branch but it was merged into the 3.4 branch instead (closes #31012). Discussion ---------- [Process] Fix missing $extraDirs when open_basedir returns | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? |no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #31010 | License | MIT Fix missing $extraDirs when open_basedir returns Commits ------- e238c89 Fix missing $extraDirs when open_basedir returns
2 parents 7a3060a + e238c89 commit 6a5eac7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Symfony/Component/Process/ExecutableFinder.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ public function addSuffix($suffix)
5151
public function find($name, $default = null, array $extraDirs = [])
5252
{
5353
if (ini_get('open_basedir')) {
54-
$searchPath = explode(PATH_SEPARATOR, ini_get('open_basedir'));
54+
$searchPath = array_merge(
55+
explode(PATH_SEPARATOR, ini_get('open_basedir')),
56+
$extraDirs
57+
);
5558
$dirs = [];
5659
foreach ($searchPath as $path) {
5760
// Silencing against https://bugs.php.net/69240

0 commit comments

Comments
 (0)
0