[Process] Fix a mistake triggering stream_select errors

This commit is contained in:
Jordi Boggiano 2012-04-08 20:26:04 +02:00
parent d6948581ac
commit 2d586d245d

View File

@ -213,14 +213,15 @@ class Process
if (null === $this->stdin) { if (null === $this->stdin) {
fclose($this->pipes[0]); fclose($this->pipes[0]);
unset($this->pipes[0]);
return; return;
} else { } else {
$writePipes = array($this->pipes[0]); $writePipes = array($this->pipes[0]);
unset($this->pipes[0]);
$stdinLen = strlen($this->stdin); $stdinLen = strlen($this->stdin);
$stdinOffset = 0; $stdinOffset = 0;
} }
unset($this->pipes[0]);
while ($writePipes) { while ($writePipes) {
$r = $this->pipes; $r = $this->pipes;