Skip to content

Commit 823d355

Browse files
Merge branch '4.4' into 5.4
* 4.4: [HttpKernel] lock when writting profiles Using identical comparison for path validation [Mime] Fix email rendering when having inlined parts that are not related to the content [HttpFoundation] move flushing outside of Response::closeOutputBuffers [FrameworkBundle] Do not throw when describing a factory definition Fix checking result of DateTime::getLastErrors
2 parents f4bfe96 + 518e21d commit 823d355

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,7 @@ public function send()
399399
litespeed_finish_request();
400400
} elseif (!\in_array(\PHP_SAPI, ['cli', 'phpdbg'], true)) {
401401
static::closeOutputBuffers(0, true);
402+
flush();
402403
}
403404

404405
return $this;
@@ -1245,7 +1246,6 @@ public static function closeOutputBuffers(int $targetLevel, bool $flush): void
12451246
while ($level-- > $targetLevel && ($s = $status[$level]) && (!isset($s['del']) ? !isset($s['flags']) || ($s['flags'] & $flags) === $flags : $s['del'])) {
12461247
if ($flush) {
12471248
ob_end_flush();
1248-
flush();
12491249
} else {
12501250
ob_end_clean();
12511251
}

0 commit comments

Comments
 (0)