class ProcessPipes
ProcessPipes manages descriptors and pipes for the use of proc_open.
array | $pipes |
__construct($useFiles, $ttyMode) | ||
__destruct() | ||
unblock() Sets non-blocking mode on pipes. | ||
close() Closes file handles and pipes. | ||
closeUnixPipes() Closes Unix pipes. | ||
array | getDescriptors() Returns an array of descriptors for the use of proc_open. | |
array | read(Boolean $blocking) Reads data in file handles and pipes. | |
array | readAndCloseHandles(Boolean $blocking) Reads data in file handles and pipes, closes them if EOF is reached. | |
Boolean | hasOpenHandles() Returns if the current state has open file handles or pipes. | |
write(Boolean $blocking, string|null $stdin) Writes stdin data. |
$useFiles | ||
$ttyMode |
Sets non-blocking mode on pipes.
Closes file handles and pipes.
Closes Unix pipes.
Nothing happens in case file handles are used.
Returns an array of descriptors for the use of proc_open.
array |
Reads data in file handles and pipes.
Boolean | $blocking | Whether to use blocking calls or not. |
array | An array of read data indexed by their fd. |
Reads data in file handles and pipes, closes them if EOF is reached.
Boolean | $blocking | Whether to use blocking calls or not. |
array | An array of read data indexed by their fd. |
Returns if the current state has open file handles or pipes.
Boolean |
Writes stdin data.
Boolean | $blocking | Whether to use blocking calls or not. |
string|null | $stdin | The data to write. |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/Process/ProcessPipes.html