Skip to content

Commit

Permalink
Fixed #8455: PhpExecutableFinder::find() does not always return the c…
Browse files Browse the repository at this point in the history
…orrect binary
  • Loading branch information
patrickallaert authored and fabpot committed Jul 21, 2013
1 parent d8b42aa commit a2eca45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Process/PhpExecutableFinder.php
Expand Up @@ -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;
}

Expand Down

0 comments on commit a2eca45

Please sign in to comment.