[TYPO3-core] RFC #12498: t3lib_div::flushOutputBuffers can't work
Martin Kutschker
masi-no at spam-typo3.org
Fri Nov 6 23:31:36 CET 2009
Steffen Gebert schrieb:
> Hi,
>
> this is a SVN patch request.
>
> Type: Bugfix
>
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=12489
>
> Branches: trunk
>
> Problem:
> #12189 added two functions: cleanOutputBuffers() and flushOutputBuffers()
> The latter one can't work, as it's not possible to send the header after
> content has been sent out:
>
> while (ob_get_level()) {
> ob_end_flush();
> }
> header('Content-Encoding: None', TRUE);
>
>
> Solution:
> Use ob_get_clean() to get the buffer's contents, send the header and
> then print it out.
What happens if you simple reverse the order?
header('Content-Encoding: None', TRUE);
while (ob_get_level()) {
ob_end_flush();
}
Masi
More information about the TYPO3-team-core
mailing list