From 35a2fe43cbda63ade250fc2d6bc5656bb7b64e15 Mon Sep 17 00:00:00 2001 From: Patrick Allaert Date: Tue, 9 Jul 2013 15:42:15 +0200 Subject: [PATCH] [Process] Fixed #8455: PhpExecutableFinder::find() does not always return the correct binary --- 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 8f63c2dd32928..6c9b8a1149a19 100644 --- a/src/Symfony/Component/Process/PhpExecutableFinder.php +++ b/src/Symfony/Component/Process/PhpExecutableFinder.php @@ -34,7 +34,7 @@ public function __construct() public function find() { // PHP_BINARY return the current sapi executable - if (defined('PHP_BINARY') && PHP_BINARY && ('cli' === PHP_SAPI)) { + if (defined('PHP_BINARY') && PHP_BINARY && ('cli' === PHP_SAPI) && is_file(PHP_BINARY)) { return PHP_BINARY; }