class WindowsPipes extends AbstractPipes

WindowsPipes implementation uses temporary files as handles.

Properties

$pipes from AbstractPipes

Methods

__construct($disableOutput, resource|null $input)

No description

close()

Closes file handles and pipes.

bool
hasSystemCallBeenInterrupted()

Returns true if a system call has been interrupted.

unblock()

Unblocks streams.

write()

Writes input to stdin.

handleError($type, $msg)

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 WindowsPipes
create(Process $process, $input)

Creates a new WindowsPipes instance.

Details

at line 38
__construct($disableOutput, resource|null $input)

Parameters

$disableOutput
resource|null $input

at line 172
close()

Closes file handles and pipes.

in AbstractPipes at line 58
protected bool hasSystemCallBeenInterrupted()

Returns true if a system call has been interrupted.

Return Value

bool

in AbstractPipes at line 70
protected unblock()

Unblocks streams.

in AbstractPipes at line 89
protected write()

Writes input to stdin.

in AbstractPipes at line 146
handleError($type, $msg)

Parameters

$type
$msg

at line 88
__destruct()

at line 96
array getDescriptors()

Returns an array of descriptors for the use of proc_open.

Return Value

array

at line 121
string[] getFiles()

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

Return Value

string[]

at line 129
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 164
bool areOpen()

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

Return Value

bool

at line 192
static WindowsPipes create(Process $process, $input)

Creates a new WindowsPipes instance.

Parameters

Process $process The process
$input

Return Value

WindowsPipes