Copied!

WindowsPipes implementation uses temporary files as handles.

  • see https://bugs.php.net/51800
  • see https://bugs.php.net/65650
  • author Romain Neutron
  • internal
Cloneable Instantiable
Constants
public Symfony\Component\Process\Pipes\PipesInterface ::CHUNK_SIZE = 16384
Properties
public array Symfony\Component\Process\Pipes\AbstractPipes :: $pipes
Methods
public __construct ( ? mixed $input , bool $haveReadSupport )
public __destruct ()
public __sleep () : array
public __wakeup ()
public areOpen () : bool
 

Returns if the current state has open file handles or pipes.

public close ()
 
public getDescriptors () : array
 

Returns an array of descriptors for the use of proc_open.

public getFiles () : array
 

Returns an array of filenames indexed by their related stream in case these pipes use temporary files.

  • return string []
public Symfony\Component\Process\Pipes\AbstractPipes :: handleError ( int $type , string $msg )
 
  • internal
public haveReadSupport () : bool
 

Returns if pipes are able to read output.

public readAndWrite ( bool $blocking , bool $close = false ) : array
 

Reads data in file handles and pipes.

  • param bool $blocking Whether to use blocking calls or not
  • param bool $close Whether to close pipes if they've reached EOF
  • return string [] An array of read data indexed by their fd
Methods
protected Symfony\Component\Process\Pipes\AbstractPipes :: hasSystemCallBeenInterrupted () : bool
 

Returns true if a system call has been interrupted.

protected Symfony\Component\Process\Pipes\AbstractPipes :: unblock ()
 

Unblocks streams.

protected Symfony\Component\Process\Pipes\AbstractPipes :: write () : ? array
 

Writes input to stdin.

  • throws InvalidArgumentException When an input iterator yields a non supported value
Properties
private $fileHandles
private $files
private $haveReadSupport
private $lockHandles
private $readBytes
© 2022 Bruce Wells
Search Namespaces \ Classes
Configuration