[TYPO3-core] RFC #9974: Use PHP built–in gzip/deflate compression in Frontend

Dmitry Dulepov dmitry at typo3.org
Thu Dec 18 16:13:58 CET 2008


Hi!

This is SVN patch request.

Type: feature

Branches: trunk

BT reference: http://bugs.typo3.org/view.php?id=9974

Problem: currently TYPO3 uses its own GZip compression class. This class was not changed for a long time and very few people know how it works. PHP includes its own output compression handler, which is not only faster but also maintained by PHP team and (!!!) supports "deflate" compression in addition to "gzip". We can only benefit from using this handler.

Solution: the attached patch changes TYPO3 Frontend to use PHP handler instead of TYPO3 own. It will also correct "Content-length" header generated by "config.enableContentLengthHeader=1".

Notes: 
- the patch removes "compressionDebugInfo" configuration setting from t3lib/config_default.php as it is not possible to provide this information any more. But it is nothing comparing to receiving "deflate" support in TYPO3!
- comparison for the "Content-length:" is correct because no space can occur before ":" according to the RFC 2616 (parts #2.2 and #4.2)

-- 
Dmitry Dulepov
TYPO3 core team
In the blog: http://typo3bloke.net/post-details/how_will_i_fix_bugs_in_extensions_from_now_on/
My TYPO3 book: http://www.packtpub.com/typo3-extension-development/book
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 9974.diff
Type: text/x-diff
Size: 5634 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20081218/c33141d5/attachment.diff 


More information about the TYPO3-team-core mailing list