Browse Source

[Process] PHP_BINARY return the current process

stealth35 13 năm trước cách đây
mục cha
commit
e2fc3cde90
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;
         }