[TYPO3-core] RFC #12498: t3lib_div::flushOutputBuffers can't work

Steffen Gebert steffen at steffen-gebert.de
Fri Nov 6 23:09:08 CET 2009


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.

Note:
An example, how to test this, is attached to bug tracker.

Regards
Steffen
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 12498.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20091106/4d28306f/attachment.txt>


More information about the TYPO3-team-core mailing list