function WindowsPipes::getDescriptors
Overrides PipesInterface::getDescriptors
File
-
vendor/
symfony/ process/ Pipes/ WindowsPipes.php, line 105
Class
- WindowsPipes
- WindowsPipes implementation uses temporary files as handles.
Namespace
Symfony\Component\Process\PipesCode
public function getDescriptors() : array {
if (!$this->haveReadSupport) {
$nullstream = fopen('NUL', 'c');
return [
[
'pipe',
'r',
],
$nullstream,
$nullstream,
];
}
// We're not using pipe on Windows platform as it hangs (https://bugs.php.net/51800)
// We're not using file handles as it can produce corrupted output https://bugs.php.net/65650
// So we redirect output within the commandline and pass the nul device to the process
return [
[
'pipe',
'r',
],
[
'file',
'NUL',
'w',
],
[
'file',
'NUL',
'w',
],
];
}