Date: 11/12/00
- Next message: James Treworgy: "Re: [PHP-DEV] Bug in 4.03pl1 multipart/form-data method (file uploads)"
- Previous message: Mike Robinson: "RE: [PHP-DEV] RE: Bug #7323 Updated: Limitation to substr()"
- Next in thread: Zeev Suraski: "Re: [PHP-DEV] transparent output compression patch"
- Reply: Zeev Suraski: "Re: [PHP-DEV] transparent output compression patch"
- Reply: Manuel Lemos: "Re: [PHP-DEV] transparent output compression patch"
- Maybe reply: Jade Nicoletti: "Re: [PHP-DEV] transparent output compression patch"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi
Here's a patch that adds transparent output compression in the output layer.
The patch is just a start. I've mainly posted it to get some feedback...
So far, it isn't thread safe and only the 'gzip' coding really works.
Some questions that I have:
- Is output.c the right place to put this stuff in?
- There shouln't be a ob_compress_finish(). The gzip/deflate trailer
should be sent automatically. Where should I place the call to
that function?
- The patch won't work if you dynamically load the zlib extension.
How can I fix that?
HAVE_ZLIB isn't set... should I remove the '#if's and check
at runtime if zlib is available? I think this won't work if the
compression is done in output.c...
Usage:
------ example.php
<?
ob_compress(1);
echo 'this is just test';
ob_compress_finish();
------
Bugs/TODOs:
1. Grep for them (TODO|FIXME).
2. The deflate coding dosn't work. I don't see why, right now... hint?
-Jade.
PS: Thank you for your feedback.
-- =============================================================================== Jade Nicoletti Nicoletti Net Services Tel. 01 240 4774 Geschäftsleitung Postfach 2519 Fax 01 240 4775 System-Administration 8021 Zürich ============================================[ Weitere Infos: http://nns.ch/ ]==
- text/plain attachment: comp.patch
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: James Treworgy: "Re: [PHP-DEV] Bug in 4.03pl1 multipart/form-data method (file uploads)"
- Previous message: Mike Robinson: "RE: [PHP-DEV] RE: Bug #7323 Updated: Limitation to substr()"
- Next in thread: Zeev Suraski: "Re: [PHP-DEV] transparent output compression patch"
- Reply: Zeev Suraski: "Re: [PHP-DEV] transparent output compression patch"
- Reply: Manuel Lemos: "Re: [PHP-DEV] transparent output compression patch"
- Maybe reply: Jade Nicoletti: "Re: [PHP-DEV] transparent output compression patch"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

