From 7280da8af2952bb0311e8e0fc1b8ee5bae81f212 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Thu, 24 Mar 2011 09:15:33 +0100 Subject: [PATCH] [Process] fixed previous commit --- src/Symfony/Component/Process/PhpProcess.php | 4 ++-- src/Symfony/Component/Process/Process.php | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/Process/PhpProcess.php b/src/Symfony/Component/Process/PhpProcess.php index 3307a6ee1c..34078e0aa6 100644 --- a/src/Symfony/Component/Process/PhpProcess.php +++ b/src/Symfony/Component/Process/PhpProcess.php @@ -62,8 +62,8 @@ class PhpProcess extends Process */ 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); diff --git a/src/Symfony/Component/Process/Process.php b/src/Symfony/Component/Process/Process.php index b3fb3c2eb1..89ed49583b 100644 --- a/src/Symfony/Component/Process/Process.php +++ b/src/Symfony/Component/Process/Process.php @@ -284,6 +284,11 @@ class Process $this->stderr .= $line; } + public function getCommandLine() + { + return $this->commandline; + } + public function setCommandLine($commandline) { $this->commandline = $commandline;