class UnixPipes extends AbstractPipes

UnixPipes implementation uses unix pipes as handles.

Properties

array $pipes from AbstractPipes

Methods

close()

Closes file handles and pipes.

__construct($ttyMode, $ptyMode, $input, $disableOutput)

No description

__destruct()

No description

array
getDescriptors()

Returns an array of descriptors for the use of proc_open.

string[]
getFiles()

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

string[]
readAndWrite(bool $blocking, bool $close = false)

Reads data in file handles and pipes.

bool
areOpen()

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

static UnixPipes
create(Process $process, string|resource $input)

Creates a new UnixPipes instance.

Details

in AbstractPipes at line line 35
close()

Closes file handles and pipes.

at line line 32
__construct($ttyMode, $ptyMode, $input, $disableOutput)

Parameters

$ttyMode
$ptyMode
$input
$disableOutput

at line line 45
__destruct()

at line line 53
array getDescriptors()

Returns an array of descriptors for the use of proc_open.

Return Value

array

at line line 91
string[] getFiles()

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

Return Value

string[]

at line line 99
string[] readAndWrite(bool $blocking, bool $close = false)

Reads data in file handles and pipes.

Parameters

bool $blocking Whether to use blocking calls or not.
bool $close Whether to close pipes if they've reached EOF.

Return Value

string[] An array of read data indexed by their fd.

at line line 197
bool areOpen()

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

Return Value

bool

at line line 210
static UnixPipes create(Process $process, string|resource $input)

Creates a new UnixPipes instance.

Parameters

Process $process
string|resource $input

Return Value

UnixPipes