Explorar el Código

[Process] PHP_BINARY return the current process

stealth35 hace 13 años
padre
commit
e2fc3cde90
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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()
     {
-        if (defined('PHP_BINARY') && PHP_BINARY) {
+        if (defined('PHP_BINARY') && PHP_BINARY && ('php' === pathinfo(PHP_BINARY, PATHINFO_FILENAME))) {
             return PHP_BINARY;
         }