[TYPO3-core] RFC: #12396: BUG: PHP Warning produced by "t3lib_div::flushOutputBuffers"

Steffen Gebert steffen at steffen-gebert.de
Thu Oct 29 19:08:46 CET 2009


Am 29.10.2009, 19:02 Uhr, schrieb Steffen Kamper <info at sk-typo3.de>:

> Hi,
>
> Michael Klapper schrieb:
>> Martin Kutschker schrieb:
>>> The idea was to send the header just in case as when it's used as  
>>> CGI/module. Perhaps it's better to
>>> check if TYPO3 isn't in CLI mode.
>> As i know it is not common to send a header at the commandline because  
>> there is no "client" which can interpret the send header information.
>>  Mick
>
> what Masi meant is
>
> if (!TYPO3_cliMode) {
>    header('Content-Encoding:·None',·TRUE);
> }
>

Dmitry already supposed, to not start output compression in CLI mode. I  
think this idea is quite good, so we wouldn't need to call  
flushOutputBuffers().
As already mentioned, the header() after the ob_flush can't work IMHO.  
Unfortunately I had no time to investigate the last days.

Steffen


More information about the TYPO3-team-core mailing list