瀏覽代碼

[Process] Removed useless getenv

Pascal Borreli 14 年之前
父節點
當前提交
1e69076d7a
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/Symfony/Component/Process/PhpProcess.php

+ 2 - 2
src/Symfony/Component/Process/PhpProcess.php

@@ -78,8 +78,8 @@ class PhpProcess extends Process
      */
     private function getPhpBinary()
     {
-        if (getenv('PHP_PATH')) {
-            if (!is_executable($php = getenv('PHP_PATH'))) {
+        if ($php = getenv('PHP_PATH')) {
+            if (!is_executable($php)) {
                 throw new \RuntimeException('The defined PHP_PATH environment variable is not a valid PHP executable.');
             }