[Process] Fix AbstractPipes::write() for a situation seen on HHVM (at least)
This commit is contained in:
parent
45dac4b44e
commit
2bb2b9b35f
@ -134,9 +134,7 @@ abstract class AbstractPipes implements PipesInterface
|
||||
if (null === $this->input && !isset($this->inputBuffer[0])) {
|
||||
fclose($this->pipes[0]);
|
||||
unset($this->pipes[0]);
|
||||
}
|
||||
|
||||
if (!$w) {
|
||||
} elseif (!$w) {
|
||||
return array($this->pipes[0]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user