8000
We read every piece of feedback, and take your input very seriously.
2 parents 9d79a40 + c1df9f2 commit a004fc7Copy full SHA for a004fc7
src/Symfony/Component/Console/Output/StreamOutput.php
@@ -70,7 +70,7 @@ public function getStream()
70
*/
71
protected function doWrite($message, $newline)
72
{
73
- if (false === @fwrite($this->stream, $message.($newline ? PHP_EOL : ''))) {
+ if (false === @fwrite($this->stream, $message) || ($newline && (false === @fwrite($this->stream, PHP_EOL)))) {
74
// should never happen
75
throw new \RuntimeException('Unable to write output.');
76
}