8000 bug #19508 [Process] Fix AbstractPipes::write() for a situation seen … · symfony/symfony@05c9f6c · GitHub
[go: up one dir, main page]

Skip to content

Commit 05c9f6c

Browse files
bug #19508 [Process] Fix AbstractPipes::write() for a situation seen on HHVM (at least) (nicolas-grekas)
This PR was merged into the 2.7 branch. Discussion ---------- [Process] Fix AbstractPipes::write() for a situation seen on HHVM (at least) | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | composer/composer#5381, composer/composer#5566 | License | MIT | Doc PR | - Even if I tried with my local hhvm, I can't reproduce the reported issues, yet it looks like some versions of HHVM trigger a notice here. Commits ------- 2bb2b9b [Process] Fix AbstractPipes::write() for a situation seen on HHVM (at least)
2 parents 45dac4b + 2bb2b9b commit 05c9f6c

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