note 106429 added to zlib.configuration
| From: | Nathan at osu1 dot php dot net | Date: | Wed, 09 Nov 2011 04:53:30 +0000 |
| Subject: | note 106429 added to zlib.configuration | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-184344@lists.php.net to get a copy of this message | ||
Apparently, there is a bug in certain versions of PHP with setting zlib.output_compression to
"On" via ini_set:
<?php
ini_set("zlib.output_compression", "On");
?>
In some cases, it does not send the Content-type header and browsers won't know to decompress
the contents before displaying. Instead, you can set it to the buffer size, which sends the correct
header:
<?php
ini_set("zlib.output_compression", 4096);
?>
----
Server IP: 192.41.42.26
Probable Submitter: 108.46.101.155
----
Manual Page -- http://www.php.net/manual/en/zlib.configuration.php
Edit -- https://master.php.net/note/edit/106429
Del: integrated -- https://master.php.net/note/delete/106429/integrated
Del: useless -- https://master.php.net/note/delete/106429/useless
Del: bad code -- https://master.php.net/note/delete/106429/bad+code
Del: spam -- https://master.php.net/note/delete/106429/spam
Del: non-english -- https://master.php.net/note/delete/106429/non-english
Del: in docs -- https://master.php.net/note/delete/106429/in+docs
Del: other reasons-- https://master.php.net/note/delete/106429
Reject -- https://master.php.net/note/reject/106429
Search -- https://master.php.net/manage/user-notes.php