public Symfony\Component\Process\Pipes\PipesInterface::CHUNK_SIZE = 16384
public array $pipes = []
public __construct( $input)
  • param resource|string|\Iterator $input
public abstract Symfony\Component\Process\Pipes\PipesInterface::areOpen() : bool

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

public close() : void
public abstract Symfony\Component\Process\Pipes\PipesInterface::getDescriptors() : array

Returns an array of descriptors for the use of proc_open.

public abstract Symfony\Component\Process\Pipes\PipesInterface::getFiles() : array

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

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

Returns if pipes are able to read output.

public abstract Symfony\Component\Process\Pipes\PipesInterface::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
protected hasSystemCallBeenInterrupted() : bool

Returns true if a system call has been interrupted.

protected unblock() : void

Unblocks streams.

protected write() : ?array

Writes input to stdin.

  • throws \InvalidArgumentException When an input iterator yields a non supported value
private bool $blocked = true
private $input = NULL
  • var resource|string|\Iterator
private string $inputBuffer = ''
private ?string $lastError = NULL
© 2024 Bruce Wells
Search Namespaces \ Classes