WindowsPipes
class WindowsPipes extends AbstractPipes
WindowsPipes implementation uses temporary files as handles.
Properties
array | $pipes | from AbstractPipes |
Methods
__construct($disableOutput, $input) | ||
close() Closes file handles and pipes. | ||
__destruct() | ||
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
__construct($disableOutput, $input)
Parameters
$disableOutput | ||
$input |
close()
Closes file handles and pipes.
__destruct()
array getDescriptors()
Returns an array of descriptors for the use of proc_open.
Return Value
array |
string[] getFiles()
Returns an array of filenames indexed by their related stream in case these pipes use temporary files.
Return Value
string[] |
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 |
bool areOpen()
Returns if the current state has open file handles or pipes.
Return Value
bool |
static WindowsPipes create(Process $process, $input)
Creates a new WindowsPipes instance.
Parameters
Process | $process | The process |
$input |
Return Value
WindowsPipes |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.8/Symfony/Component/Process/Pipes/WindowsPipes.html