[Process] fixed previous commit
This commit is contained in:
parent
b2a8e35900
commit
7280da8af2
@ -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);
|
||||||
|
@ -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;
|
||||||
|
Reference in New Issue
Block a user