diff --git a/functions/zlib.xml b/functions/zlib.xml index a264b1447b..6762de2d6c 100644 --- a/functions/zlib.xml +++ b/functions/zlib.xml @@ -609,7 +609,7 @@ gzclose ($zd); gzcompress - Gz-compress a string + Deflate a string Description @@ -623,11 +623,19 @@ gzclose ($zd); - This function returns a gzip-compressed version of the input - data or false on errors. The optional - parameter level can be given as 0 for no + This function returns a compressed version of the input + data using the deflate algorithm, + or false if an error is encountered. The optional parameter + level can be given as 0 for no compression up to 9 for maximum compression. + + + This is not the same as gzip compression, + which includes some header data. See gzencode + for gzip compression. + + See also gzuncompress. @@ -637,7 +645,7 @@ gzclose ($zd); gzuncompress - Uncompress a gz-compressed string + Uncompress a deflated string Description @@ -652,9 +660,9 @@ gzclose ($zd); This function takes data compressed by - gzcompress and returns the orignial + gzcompress and returns the original uncompressed data or false on error. The function will return an - error if the uncompressed data is more than 256 times the lenght + error if the uncompressed data is more than 256 times the length of the compressed input data or more than the optional parameter length.