php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #33641 zlib.output_compression
Submitted: 2005-07-11 09:05 UTC Modified: 2005-07-11 12:20 UTC
From: lacak at users dot sourceforge dot net Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: Win98
Private report: No CVE-ID: None
 [2005-07-11 09:05 UTC] lacak at users dot sourceforge dot net
Description:
------------
in documentation on www.php.net/zlib is stated :
zlib.output_compression "Off" PHP_INI_ALL 

and in www.php.net/manual/en/ini.php#ini.list is stated :
zlib.output_compression "Off" PHP_INI_SYSTEM|PHP_INI_PERDIR

what is true ?
It real the second case is true. But why not the first ?

(Also note that using zlib.output_compression is preferred over ob_gzhandler().)


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-07-11 10:14 UTC] vrana@php.net
I see PHP_INI_ALL in www.php.net/manual/en/ini.php too.
 [2005-07-11 11:35 UTC] lacak at users dot sourceforge dot net
Yes... you are right. But I am sure, that today morning it was as i wrote.

Can I have one not-bug question ?
when I use ini_set('zlib.output_compression', true);
in my script, then this has no effect on compression of page.
It is right ?
So in script i can only disable zlib.output_compression, but non enable ?

Thanks
 [2005-07-11 11:47 UTC] vrana@php.net
Ask support questions at General Mailing List next time. However, this wasn't clear from the docs so I added this: "In runtime, it can be set only before sending any output."

It means that you can both enable and disable it in runtime but with limits already mentioned in the docs (browser must send proper Accept-Encoding header).
 [2005-07-11 12:20 UTC] lacak at users dot sourceforge dot net
Thank you,

but when i use ini_set('zlib.output_compression', true);
as first statement in my script (so no outupt is send before), compression is not used
(browser sends Accept-Encoding: gzip, defalte) and page is returned only as text/html

should I report this as a bug ?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 00:01:34 2024 UTC