Index: t3lib/class.t3lib_div.php =================================================================== --- t3lib/class.t3lib_div.php (Revision 6216) +++ t3lib/class.t3lib_div.php (Arbeitskopie) @@ -5692,6 +5692,32 @@ } return '\''.$value.'\''; } + + + /** + * Ends and cleans all output buffers + * + * @return void + */ + public static function cleanOutputBuffers() { + while (ob_get_level()) { + ob_end_clean(); + } + header('Content-Encoding: None', TRUE); + } + + + /** + * Ends and flushes all output buffers + * + * @return void + */ + public static function flushOutputBuffers() { + while (ob_get_level()) { + ob_end_flush(); + } + header('Content-Encoding: None', TRUE); + } } ?> \ No newline at end of file Index: typo3/cli_dispatch.phpsh =================================================================== --- typo3/cli_dispatch.phpsh (Revision 6216) +++ typo3/cli_dispatch.phpsh (Arbeitskopie) @@ -117,7 +117,7 @@ // Make sure output is not buffered, // so that command-line output and interaction can take place -ob_end_flush(); +t3lib_div::flushOutputBuffers(); if (defined('TYPO3_cliInclude')) { include(TYPO3_cliInclude); Index: typo3/mod/tools/em/class.em_index.php =================================================================== --- typo3/mod/tools/em/class.em_index.php (Revision 6216) +++ typo3/mod/tools/em/class.em_index.php (Arbeitskopie) @@ -1300,7 +1300,7 @@ '\'" />'; // as this page loads dynamically, quit output buffering caused by ob_gzhandler - $this->quitOutputBuffering(); + t3lib_div::cleanOutputBuffers(); if(t3lib_div::_GET('l10n') == 'check') { $loadedExtensions = array_keys($TYPO3_LOADED_EXT); @@ -6166,20 +6166,6 @@ return $content . '
'; } - - /** - * Quit output buffering started by ob_gzhandler - * - * @return void - */ - private function quitOutputBuffering() { - - while (ob_get_level()) { - ob_end_clean(); - } - - header('Content-Encoding: None', TRUE); - } }