Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Process.php

function Process::addErrorOutput

Adds a line to the STDERR stream.

@internal

1 call to Process::addErrorOutput()
Process::buildCallback in vendor/symfony/process/Process.php
Builds up the callback used by wait().

File

vendor/symfony/process/Process.php, line 957

Class

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

Namespace

Symfony\Component\Process

Code

public function addErrorOutput(string $line) : void {
    $this->lastOutputTime = microtime(true);
    fseek($this->stderr, 0, \SEEK_END);
    fwrite($this->stderr, $line);
    fseek($this->stderr, $this->incrementalErrorOutputOffset);
}
RSS feed
Powered by Drupal