Actions
Bug #14922
closedTYPO3_CONF_VARS['FE']['compressionLevel'] = true leads to no compression with wrong Content-Length
Start date:
2005-08-11
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
3.8.0
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
In constructor gzip_encode line 168 the compression level is compared (identical: $level === true). If $level is set using the Install Tool $level is a string 'true' therefore the comparison fails and gzcompress is called with string 'true'
Needed Changes:
- do a string comparison: if (strcmp($level,'true') == 0 )
- check $level for Integer in the range from 0 to 9 otherwise set default
appended diff -u contains also some extra headers about compression size - not needed but interesting ...
My System:
Linux p15167410 2.6.7-040722 #1 SMP Thu Jul 22 21:41:08 CEST 2004 i686 i686 i386 GNU/Linux
PHP 4.3.4 (cli) (built: Apr 22 2005 15:31:00)
Apache2
(issue imported from #M1370)
Files
Actions