8000 [Process] Fix a mistake triggering stream_select errors · symfony/symfony@2d586d2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2d586d2

Browse files
committed
[Process] Fix a mistake triggering stream_select errors
1 parent d694858 commit 2d586d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/Component/Process/Process.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,14 +213,15 @@ public function start($callback = null)
213213

214214
if (null === $this->stdin) {
215215
fclose($this->pipes[0]);
216+
unset($this->pipes[0]);
216217

217218
return;
218219
} else {
219220
$writePipes = array($this->pipes[0]);
221+
unset($this->pipes[0]);
220222
$stdinLen = strlen($this->stdin);
221223
$stdinOffset = 0;
222224
}
223-
unset($this->pipes[0]);
224225

225226
while ($writePipes) {
226227
$r = $this->pipes;

0 commit comments

Comments
 (0)
0