Explorar o código

[Process] introduced usage of PHP_BINARY (available as of PHP 5.4)

Fabien Potencier %!s(int64=13) %!d(string=hai) anos
pai
achega
acbbe8ac7f
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/Symfony/Component/Process/PhpExecutableFinder.php

+ 4 - 0
src/Symfony/Component/Process/PhpExecutableFinder.php

@@ -33,6 +33,10 @@ class PhpExecutableFinder
      */
     public function find()
     {
+        if (defined('PHP_BINARY') && PHP_BINARY) {
+            return PHP_BINARY;
+        }
+
         if ($php = getenv('PHP_PATH')) {
             if (!is_executable($php)) {
                 return false;