private function Process::readPipes in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/process/Process.php \Symfony\Component\Process\Process::readPipes()
Reads pipes, executes callback.
Parameters
bool $blocking Whether to use blocking calls or not.:
bool $close Whether to close file handles or not.:
4 calls to Process::readPipes()
- Process::getErrorOutput in vendor/
symfony/ process/ Process.php - Returns the current error output of the process (STDERR).
- Process::getOutput in vendor/
symfony/ process/ Process.php - Returns the current output of the process (STDOUT).
- Process::updateStatus in vendor/
symfony/ process/ Process.php - Updates the status of the process, reads pipes.
- Process::wait in vendor/
symfony/ process/ Process.php - Waits for the process to terminate.
File
- vendor/
symfony/ process/ Process.php, line 1364
Class
- Process
- Process is a thin wrapper around proc_* functions to easily start independent PHP processes.
Namespace
Symfony\Component\ProcessCode
private function readPipes($blocking, $close) {
$result = $this->processPipes
->readAndWrite($blocking, $close);
$callback = $this->callback;
foreach ($result as $type => $data) {
if (3 == $type) {
$this->fallbackExitcode = (int) $data;
}
else {
$callback($type === self::STDOUT ? self::OUT : self::ERR, $data);
}
}
}