public function getIncrementalErrorOutput()
    {
        $this->readPipesForOutput(__FUNCTION__);

        $latest = stream_get_contents($this->stderr, -1, $this->incrementalErrorOutputOffset);
        $this->incrementalErrorOutputOffset = ftell($this->stderr);

        if (false === $latest) {
            return '';
        }

        return $latest;
    }
public function getIncrementalErrorOutput()
    {
        $this->readPipesForOutput(__FUNCTION__);

        $latest = stream_get_contents($this->stderr, -1, $this->incrementalErrorOutputOffset);
        $this->incrementalErrorOutputOffset = ftell($this->stderr);

        if (false === $latest) {
            return '';
        }

        return $latest;
    }
public function getIncrementalErrorOutput ( ) { $ this -> readPipesForOutput ( __FUNCTION__ ) ; $ latest = stream_get_contents ( $ this -> stderr , - 1 , $ this -> incrementalErrorOutputOffset ) ; $ this -> incrementalErrorOutputOffset = ftell ( $ this -> stderr ) ; if ( false === $ latest ) { return '' ; } return $ latest ; }
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 string The process error output since the last call

@throws LogicException in case the output has been disabled
@throws LogicException In case the process is not started
Returns the errorOutput incrementally .