public function Process::getIncrementalErrorOutput

Returns the errorOutput incrementally.

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

Return value

string The process error output since the last call

File

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

Class

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

Namespace

Symfony\Component\Process

Code

public function getIncrementalErrorOutput() {
  $data = $this
    ->getErrorOutput();
  $latest = substr($data, $this->incrementalErrorOutputOffset);
  $this->incrementalErrorOutputOffset = strlen($data);
  return $latest;
}