php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #60484 Documentation of gzcompress() doesn't say what actually default $level does
Submitted: 2011-12-09 15:25 UTC Modified: 2013-10-26 06:55 UTC
Votes:3
Avg. Score:3.7 ± 0.9
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: glitch dot mr at gmail dot com Assigned: krakjoe (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Irrelevent
Private report: No CVE-ID: None
 [2011-12-09 15:25 UTC] glitch dot mr at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.gzcompress#refsect1-function.gzcompress-description
---
<?php string gzcompress ( string $data [, int $level = -1 ] ) ?>

The level of compression. Can be given as 0 for no compression up to 9 for maximum compression.

It lacks information what default "-1" values does.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-01-17 13:21 UTC] mike@php.net
-Package: Zlib related +Package: Documentation problem
 [2013-10-26 06:55 UTC] krakjoe@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: krakjoe
 [2013-10-26 06:55 UTC] krakjoe@php.net
I'm not sure when this was fixed, but the function documentation now contains the details requested, so closing the bug.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 15:00:02 2026 UTC