E56A [Process] Fix AbstractPipes::write() for a situation seen on HHVM (at… · symfony/symfony@2bb2b9b · GitHub
[go: up one dir, main page]

Skip to content

Commit 2bb2b9b

Browse files
[Process] Fix AbstractPipes::write() for a situation seen on HHVM (at least)
1 parent 45dac4b commit 2bb2b9b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Symfony/Component/Process/Pipes/AbstractPipes.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,7 @@ protected function write()
134134
if (null === $this->input && !isset($this->inputBuffer[0])) {
135135
fclose($this->pipes[0]);
136136
unset($this->pipes[0]);
137-
}
138-
139-
if (!$w) {
137+
} elseif (!$w) {
140138
return array($this->pipes[0]);
141139
}
142140
}

0 commit comments

Comments
 (0)
0