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

Breadcrumb

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

function WindowsPipes::close

Overrides AbstractPipes::close

1 call to WindowsPipes::close()
WindowsPipes::__destruct in vendor/symfony/process/Pipes/WindowsPipes.php

File

vendor/symfony/process/Pipes/WindowsPipes.php, line 174

Class

WindowsPipes
WindowsPipes implementation uses temporary files as handles.

Namespace

Symfony\Component\Process\Pipes

Code

public function close() : void {
    parent::close();
    foreach ($this->fileHandles as $type => $handle) {
        ftruncate($handle, 0);
        fclose($handle);
        flock($this->lockHandles[$type], \LOCK_UN);
        fclose($this->lockHandles[$type]);
    }
    $this->fileHandles = $this->lockHandles = [];
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal