For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > May 2006 > #35936 [Ver]: ini.zlib.output-compression Documentation









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author #35936 [Ver]: ini.zlib.output-compression Documentation
mike@php.net

2006-05-24, 7:59 am

ID: 35936
Updated by: mike@php.net
Reported By: sBoisvert at bryxal dot ca
Status: Verified
-Bug Type: Zlib Related
+Bug Type: Documentation problem
Operating System: XP
PHP Version: 5.1.1
New Comment:

IIRC (and reading the code reveals that) it's possible to *disable*
zlib.output_compression at runtime, which actually works fine here.



Previous Comments:
------------------------------------------------------------------------

[2006-04-15 21:29:36] tony2001@php.net

Looks like the docs are wrong and this option is actually not
PHP_INI_ALL, but PHP_INI_SYSTEM|PHP_INI_PERDIR.
This was accidentally changed with this patch:
http://cvs.php.net/viewcvs.cgi/php-...=1.136&r2=1.137

------------------------------------------------------------------------

[2006-01-09 15:00:46] vrana@php.net

php_enable_output_compression() is called only in PHP_RINIT_FUNCTION()
and not in OnUpdate_zlib_output_compression().

------------------------------------------------------------------------

[2006-01-09 01:17:56] sBoisvert at bryxal dot ca

Description:
------------
This has either not been fixed or crept back in. (Bug #17299)

The documentation on

http://ca3.php.net/manual/en/ref.zl...put-compression

it states

zlib.output_compression boolean/integer

.... In runtime, it can be set only before sending any output.

but any attempts to set

ini_set("zlib.output_compression", "on");
ini_set("zlib.output_compression_level", 5);

will NOT compress data before sending it. Either this is a bug that
slipped in lately or a documentation problem.

A comment has already been left by someone on this page commenting on
his inability to make this work.

Thank you

Reproduce code:
---------------
ini_set("zlib.output_compression", "on");
ini_set("zlib.output_compression_level", 5);
echo(ini_get("zlib.output_compression"));

Expected result:
----------------
compressed:
on

Actual result:
--------------
uncompressed:
on


------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=35936&edit=1
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com