[PHP-DEV] transparent output compression patch From: Jade Nicoletti (nicoletti <email protected>)
Date: 11/12/00

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/ ]==

-- 
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>