8000 Fix for #5033 · gedrox/symfony@286d03b · GitHub
[go: up one dir, main page]

Skip to content

Commit 286d03b

Browse files
author
Julien Pauli
committed
Fix for symfony#5033
1 parent 2aaa4ed commit 286d03b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Symfony/Component/HttpFoundation/Response.php

Lines changed: 4 additions & 1 deletion
-
ob_end_flush();
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,12 @@ public function send()
303303
// ob_get_level() never returns 0 on some Windows configurations, so if
304304
// the level is the same two times in a row, the loop should be stopped.
305305
$previous = null;
306+
$obStatus = ob_get_status(1);
306307
while (($level = ob_get_level()) > 0 && $level !== $previous) {
307308
$previous = $level;
308
309+
if ($obStatus[$level-1] && $obStatus[$level-1]['del']) {
310+
ob_end_flush();
311+
}
309312
}
310313
flush();
311314
}

0 commit comments

Comments
 (0)
0