Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0222fde

Browse files
bug #26598 Fixes #26563 (open_basedir restriction in effect) (temperatur)
This PR was submitted for the 4.0 branch but it was merged into the 2.7 branch instead (closes #26598). Discussion ---------- Fixes #26563 (open_basedir restriction in effect) If the open_basedir is set is_file(PHP_BINARY) is false. | Q | A | ------------- | --- | Branch? | 4.0 | Bug fix? | yes/ | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #26563 | License | MIT | Doc PR | If we are using cli we already used the binary so there is no need to check if the file exists. Commits ------- 7a04976 Fixes #26563 (open_basedir restriction in effect)
2 parents 1e38f41 + 7a04976 commit 0222fde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Process/PhpExecutableFinder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function find($includeArgs = true)
4444
}
4545

4646
// PHP_BINARY return the current sapi executable
47-
if (defined('PHP_BINARY') && PHP_BINARY && in_array(PHP_SAPI, array('cli', 'cli-server', 'phpdbg')) && is_file(PHP_BINARY)) {
47+
if (defined('PHP_BINARY') && PHP_BINARY && in_array(PHP_SAPI, array('cli', 'cli-server', 'phpdbg'))) {
4848
return PHP_BINARY.$args;
4949
}
5050

0 commit comments

Comments
 (0)