#45202 [Opn->Fbk]: zlib.output_compression can not be set with ini_set()
| From: | jani@php.net | Date: | Thu, 23 Apr 2009 16:45:26 +0000 |
| Subject: | #45202 [Opn->Fbk]: zlib.output_compression can not be set with ini_set() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-136167@lists.php.net to get a copy of this message | ||
ID: 45202
Updated by: jani@php.net
Reported By: e dot ehritt at web dot de
-Status: Open
+Status: Feedback
Bug Type: Zlib Related
Operating System: Linux 2.6.24.7 i686
PHP Version: 5.2.6
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
Previous Comments:
------------------------------------------------------------------------
[2009-04-21 10:04:24] dypa at bk dot ru
not reproduced in win 5.2.9-2
not reproduced in 5.2.6-1+lenny2
------------------------------------------------------------------------
[2008-06-07 16:38:11] e dot ehritt at web dot de
Description:
------------
Configure Command
./configure --prefix=/opt/php/526 --mandir=/opt/php/man --disable-all
--disable-cgi --disable-short-tags --enable-memory-limit
--with-apxs2=/opt/apache/228/bin/apxs --with-config-file-path=/opt/conf
--with-zend-vm=GOTO
Server API Apache 2.0 Handler
PHP API 20041225
PHP Extension 20060613
Zend Extension 220060519
Debug Build no
Thread Safety enabled
Zend Memory Manager enabled
IPv6 Support enabled
Relevant Part of phpinfo()
ZLib Support enabled
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.3
Linked Version 1.2.3
Directive Local Master
zlib.output_compression On Off
zlib.output_compression_level 9 -1
zlib.output_handler no value no value
### Description ###
If configuration of zlib.output_compression
zlib.output_compression_level is seeded in a php.ini, there are no
problems. Output is managed as configured.
If configuration of zlib.output_compression
zlib.output_compression_level is determined by ini_set(), phpinfo()
adopt it but not at all output is compressed.
As you can see other Modules are not enabled. Additional zlib extension
was built by phpize.
Reproduce code:
---------------
<?php
ini_set('zlib.output_compression',true);
ini_set('zlib.output_compression_level',9);
phpinfo();
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45202&edit=1