[Process] fixed previous commit

This commit is contained in:
Fabien Potencier 2011-03-24 09:15:33 +01:00
parent b2a8e35900
commit 7280da8af2
2 changed files with 7 additions and 2 deletions

View File

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

View File

@ -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;