Skip to content

Commit 19c1ee0

Browse files
Merge branch '5.4' into 6.0
* 5.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 fix typo [HttpFoundation] move flushing outside of Response::closeOutputBuffers [FrameworkBundle] Do not throw when describing a factory definition Fix checking result of DateTime::getLastErrors [WebProfilerBundle] Fix profile search bar link query params
2 parents d50ee47 + 823d355 commit 19c1ee0

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
@@ -378,6 +378,7 @@ public function send(): static
378378
litespeed_finish_request();
379379
} elseif (!\in_array(\PHP_SAPI, ['cli', 'phpdbg'], true)) {
380380
static::closeOutputBuffers(0, true);
381+
flush();
381382
}
382383

383384
return $this;
@@ -1221,7 +1222,6 @@ public static function closeOutputBuffers(int $targetLevel, bool $flush): void
12211222
while ($level-- > $targetLevel && ($s = $status[$level]) && (!isset($s['del']) ? !isset($s['flags']) || ($s['flags'] & $flags) === $flags : $s['del'])) {
12221223
if ($flush) {
12231224
ob_end_flush();
1224-
flush();
12251225
} else {
12261226
ob_end_clean();
12271227
}

0 commit comments

Comments
 (0)