소스 검색

[Process] fixed previous commit

Fabien Potencier 14 년 전
부모
커밋
7280da8af2
2개의 변경된 파일7개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/Symfony/Component/Process/PhpProcess.php
  2. 5 0
      src/Symfony/Component/Process/Process.php

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

@@ -62,8 +62,8 @@ class PhpProcess extends Process
      */
      */
     public function run($callback = null)
     public function run($callback = null)
     {
     {
-        if (null === $this->commandline) {
-            $this->commandline = $this->getPhpBinary();
+        if (null === $this->getCommandLine()) {
+            $this->setCommandLine($this->getPhpBinary());
         }
         }
 
 
         return parent::run($callback);
         return parent::run($callback);

+ 5 - 0
src/Symfony/Component/Process/Process.php

@@ -284,6 +284,11 @@ class Process
         $this->stderr .= $line;
         $this->stderr .= $line;
     }
     }
 
 
+    public function getCommandLine()
+    {
+        return $this->commandline;
+    }
+
     public function setCommandLine($commandline)
     public function setCommandLine($commandline)
     {
     {
         $this->commandline = $commandline;
         $this->commandline = $commandline;