8000 Fixes #26563 (open_basedir restriction in effect) · symfony/symfony@7a04976 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7a04976

Browse files
temperaturnicolas-grekas
authored andcommitted
Fixes #26563 (open_basedir restriction in effect)
If the open_basedir is set is_file(PHP_BINARY) is false.
1 parent 1e38f41 commit 7a04976

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)
0