From 703ce2c028de5ae070aea3dff16563f16026c978 Mon Sep 17 00:00:00 2001 From: temperatur <36632383+temperatur@users.noreply.github.com> Date: Mon, 19 Mar 2018 14:47:13 +0100 Subject: [PATCH] Fixes #26563 (open_basedir restriction in effect) If the open_basedir is set is_file(PHP_BINARY) is false. --- src/Symfony/Component/Process/PhpExecutableFinder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Process/PhpExecutableFinder.php b/src/Symfony/Component/Process/PhpExecutableFinder.php index 7f95450a8f1fd..8814ecad6bf58 100644 --- a/src/Symfony/Component/Process/PhpExecutableFinder.php +++ b/src/Symfony/Component/Process/PhpExecutableFinder.php @@ -39,7 +39,7 @@ public function find($includeArgs = true) $args = $includeArgs && $args ? ' '.implode(' ', $args) : ''; // PHP_BINARY return the current sapi executable - if (PHP_BINARY && in_array(PHP_SAPI, array('cli', 'cli-server', 'phpdbg')) && is_file(PHP_BINARY)) { + if (PHP_BINARY && in_array(PHP_SAPI, array('cli', 'cli-server', 'phpdbg'))) { return PHP_BINARY.$args; }