merged branch jpauli/bug5033 (PR #5034)
Commits
-------
286d03b
Fix for #5033
Discussion
----------
Fix for #5033
Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: duknow
Fixes the following tickets: #5033
Todo: run tests, got no testing env here
License of the code: MIT
Documentation PR:
This commit is contained in:
commit
6414c886f7
@ -303,9 +303,12 @@ class Response
|
||||
// ob_get_level() never returns 0 on some Windows configurations, so if
|
||||
// the level is the same two times in a row, the loop should be stopped.
|
||||
$previous = null;
|
||||
$obStatus = ob_get_status(1);
|
||||
while (($level = ob_get_level()) > 0 && $level !== $previous) {
|
||||
$previous = $level;
|
||||
ob_end_flush();
|
||||
if ($obStatus[$level-1] && $obStatus[$level-1]['del']) {
|
||||
ob_end_flush();
|
||||
}
|
||||
}
|
||||
flush();
|
||||
}
|
||||
|
Reference in New Issue
Block a user