I am not a PHP expert and cannot answer the question, but it seems that there is a lot of guessing and fuzzy information is offered.
DEFLATE is the name of the compression algorithm used by ZLIB, GZIP and others. Theoretically, GZIP supports alternative compression algorithms, but in practice they are not.
There is no such thing as a "gzip algorithm". GZIP uses the DEFLATE algorithm and places the crop data around the compressed data. With gzip you can add things like file name, file time, CRC, even comment. However, this metadata is optional, and many gzippers simply omit it.
ZLIB is similar, with the exception of another, more limited set of metadata and a specific 2-byte header.
This is all in the IETF RFC channels 1950 , 1951 and 1952 .
To say that "the gzip algorithm is compressed better than DEFLATE" is simply absurd. There is no gzip algorithm. And the algorithm used in the GZIP format is DEFLATE .
Cheeso Mar 07 '09 at 16:13 2009-03-07 16:13
source share