Bug #15930 Updated: gzencode can't have a level
| From: | sr@php.net | Date: | Thu, 07 Mar 2002 15:50:55 +0000 |
| Subject: | Bug #15930 Updated: gzencode can't have a level | ||
| References: | 1 | Groups: | php.bugs php.doc |
| Request: | Send a blank email to php-bugs+get-1927@lists.php.net to get a copy of this message | ||
ID: 15930
Updated by: sr@php.net
-Summary: gzencode can't have a level
Reported By: jbgagnon@apic.fr
-Status: Open
+Status: Analyzed
-Bug Type: Zlib Related
+Bug Type: Documentation problem
Operating System: windows 200
PHP Version: 4.1.1
-Assigned To:
+Assigned To: sr
New Comment:
That's an error in the documentation.
The optional second parameter doesn't set the compression level, it
does set the compression mode, i.e. you can use FORCE_GZIP or
FORCE_DEFLATE in order to use gzip/deflate compression. The compression
level is always the default Z_DEFAULT_COMPRESSION.
If nobody objects (does anybody use this parameter?) I'll fix the
documentation ...
Previous Comments:
------------------------------------------------------------------------
[2002-03-07 07:37:05] jbgagnon@apic.fr
<?php
$data =
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
$gzdata = gzencode($data);
echo strlen($gzdata),":ok<BR>";
$gzdata = gzencode($data,9);
echo strlen($gzdata),":bad always 10<BR>";
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=15930&edit=1