php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #33653 ini_set('zlib.output_compression', true) does not compress output
Submitted: 2005-07-12 07:15 UTC Modified: 2016-06-18 13:23 UTC
Votes:4
Avg. Score:4.0 ± 1.0
Reproduced:4 of 4 (100.0%)
Same Version:1 (25.0%)
Same OS:0 (0.0%)
From: lacak at users dot sourceforge dot net Assigned: cmb (profile)
Status: Closed Package: *General Issues
PHP Version: 5.0.5 OS: Win 2000
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: lacak at users dot sourceforge dot net
New email:
PHP Version: OS:

 

 [2005-07-12 07:15 UTC] lacak at users dot sourceforge dot net
Description:
------------
When I use in script (as a first line) statement :
ini_set('zlib.output_compression', true);
output is not compressed (is send as plain text).

When I set zlib.output_compression=On in php.ini output is compressed (OK)
Then when I use ini_set('zlib.output_compression', false); output is send as text (OK)

Why does not work ini_set('zlib.output_compression', true); ?


Reproduce code:
---------------
<?php
 ini_set('zlib.output_compression', true);
 phpinfo();
?>

Expected result:
----------------
Compressed output (Content-Encoding: gzip)

Actual result:
--------------
plain text

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-07-12 18:08 UTC] sniper@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 [2005-07-13 10:06 UTC] lacak at users dot sourceforge dot net
if this is not a bug, then it may be a feature change request.

User can switch in script from 'zlib.output_compression=On' /* set in php.ini */ to 'zlib.output_compression=Off' /* using ini_set() - It works */

Why not add switching from Off to On in script ?
 [2005-09-12 12:09 UTC] lacak at users dot sourceforge dot net
feature change request for version 5.0.x
 [2016-06-18 13:23 UTC] cmb@php.net
-Status: Open +Status: Closed -Package: Feature/Change Request +Package: *General Issues -Assigned To: +Assigned To: cmb
 [2016-06-18 13:23 UTC] cmb@php.net
Closing, as this is supposed to work anyway.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Apr 26 23:01:26 2025 UTC