Fixes #26563 (open_basedir restriction in effect)

If the open_basedir is set is_file(PHP_BINARY) is false.
This commit is contained in:
temperatur 2018-03-19 14:47:13 +01:00 committed by Nicolas Grekas
parent 1e38f41f18
commit 7a049769bf
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ class PhpExecutableFinder
}
// PHP_BINARY return the current sapi executable
if (defined('PHP_BINARY') && PHP_BINARY && in_array(PHP_SAPI, array('cli', 'cli-server', 'phpdbg')) && is_file(PHP_BINARY)) {
if (defined('PHP_BINARY') && PHP_BINARY && in_array(PHP_SAPI, array('cli', 'cli-server', 'phpdbg'))) {
return PHP_BINARY.$args;
}