Browse Source

[Process] PHP_BINARY return the current process

stealth35 13 years ago
parent
commit
e2fc3cde90
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Symfony/Component/Process/PhpExecutableFinder.php

+ 1 - 1
src/Symfony/Component/Process/PhpExecutableFinder.php

@@ -33,7 +33,7 @@ class PhpExecutableFinder
      */
      */
     public function find()
     public function find()
     {
     {
-        if (defined('PHP_BINARY') && PHP_BINARY) {
+        if (defined('PHP_BINARY') && PHP_BINARY && ('php' === pathinfo(PHP_BINARY, PATHINFO_FILENAME))) {
             return PHP_BINARY;
             return PHP_BINARY;
         }
         }