Skip to content

Commit fc1c9be

Browse files
bug #47434 [HttpFoundation] move flushing outside of Response::closeOutputBuffers (nicolas-grekas)
This PR was merged into the 4.4 branch. Discussion ---------- [HttpFoundation] move flushing outside of Response::closeOutputBuffers | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Fix change introduced in #46931 Commits ------- 118acea [HttpFoundation] move flushing outside of Response::closeOutputBuffers
2 parents ee9df24 + 118acea commit fc1c9be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpFoundation/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ public function send()
384384
fastcgi_finish_request();
385385
} elseif (!\in_array(\PHP_SAPI, ['cli', 'phpdbg'], true)) {
386386
static::closeOutputBuffers(0, true);
387+
flush();
387388
}
388389

389390
return $this;
@@ -1236,7 +1237,6 @@ public static function closeOutputBuffers(int $targetLevel, bool $flush): void
12361237
while ($level-- > $targetLevel && ($s = $status[$level]) && (!isset($s['del']) ? !isset($s['flags']) || ($s['flags'] & $flags) === $flags : $s['del'])) {
12371238
if ($flush) {
12381239
ob_end_flush();
1239-
flush();
12401240
} else {
12411241
ob_end_clean();
12421242
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy