소스 검색

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

Fabien Potencier 13 년 전
부모
커밋
acbbe8ac7f
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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;