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

Breadcrumb

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

function Process::clearOutput

Clears the process output.

Return value

$this

1 call to Process::clearOutput()
Process::getIterator in vendor/symfony/process/Process.php
Returns an iterator to the output of the process, with the output type as keys (Process::OUT/ERR).

File

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

Class

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

Namespace

Symfony\Component\Process

Code

public function clearOutput() : static {
    ftruncate($this->stdout, 0);
    fseek($this->stdout, 0);
    $this->incrementalOutputOffset = 0;
    return $this;
}
RSS feed
Powered by Drupal