#33641 [Bgs]: zlib.output_compression

From: Date: Mon, 11 Jul 2005 10:20:14 +0000
Subject: #33641 [Bgs]: zlib.output_compression
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969369062@lists.php.net to get a copy of this message
ID: 33641 User updated by: lacak at users dot sourceforge dot net Reported By: lacak at users dot sourceforge dot net Status: Bogus Bug Type: Documentation problem Operating System: Win98 PHP Version: Irrelevant New Comment: 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 ? Previous Comments: ------------------------------------------------------------------------ [2005-07-11 11:47:05] 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 11:35:26] 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 10:14:01] vrana@php.net I see PHP_INI_ALL in www.php.net/manual/en/ini.php too. ------------------------------------------------------------------------ [2005-07-11 09:05:26] 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().) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=33641&edit=1

« previous php.doc (#969369062) next »