php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45202 zlib.output_compression can not be set with ini_set()
Submitted: 2008-06-07 16:38 UTC Modified: 2009-05-26 05:57 UTC
Votes:5
Avg. Score:3.0 ± 1.3
Reproduced:4 of 5 (80.0%)
Same Version:1 (25.0%)
Same OS:0 (0.0%)
From: e dot ehritt at web dot de Assigned:
Status: Closed Package: Zlib related
PHP Version: 5.2.6 OS: Linux 2.6.24.7 i686
Private report: No CVE-ID:
 [2008-06-07 16:38 UTC] 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();
?>



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-04-21 10:04 UTC] dypa at bk dot ru
not reproduced in win 5.2.9-2
not reproduced in 5.2.6-1+lenny2
 [2009-05-25 18:54 UTC] e dot ehritt at web dot de

 [2009-05-26 05:57 UTC] jani@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Wed Apr 16 16:02:23 2014 UTC