public function Process::getIncrementalOutput

Returns the output incrementally.

In comparison with the getOutput method which always return the whole output, this one returns the new output since the last call.

Return value

string The process output since the last call

File

drupal/core/vendor/symfony/process/Symfony/Component/Process/Process.php, line 525

Class

Process
Process is a thin wrapper around proc_* functions to ease start independent PHP processes.

Namespace

Symfony\Component\Process

Code

public function getIncrementalOutput() {
  $data = $this
    ->getOutput();
  $latest = substr($data, $this->incrementalOutputOffset);
  $this->incrementalOutputOffset = strlen($data);
  return $latest;
}