note 68034 added to function.ob-gzhandler
| From: | richard at mf2fm dot com | Date: | Tue, 11 Jul 2006 09:50:23 +0000 |
| Subject: | note 68034 added to function.ob-gzhandler | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-114662@lists.php.net to get a copy of this message | ||
According to the manual, if ob_gzhander detects that the browser is unable to support deflate or
gzip it returns FALSE. Does this mean that if you use ob_start("ob_gzhandler"), any
browsers that do not support gzip/deflate will receive a blank page?
I've been having problems with IE6 displaying gzipped pages and adding a test:
<?php
if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip'))
ob_start("ob_gzhandler");
else ob_start();
?>
solved the problem. Surely if ob_gzhandler detects a lack of support for deflation it should return
the input unchanged and not FALSE?
----
Server IP: 85.116.0.130
Probable Submitter: 80.3.0.40 (proxied: 86.31.155.186)
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.ob-gzhandler.php
Edit -- http://master.php.net/note/edit/68034
Del: integrated -- http://master.php.net/note/delete/68034/integrated
Del: useless -- http://master.php.net/note/delete/68034/useless
Del: bad code -- http://master.php.net/note/delete/68034/bad+code
Del: spam -- http://master.php.net/note/delete/68034/spam
Del: non-english -- http://master.php.net/note/delete/68034/non-english
Del: in docs -- http://master.php.net/note/delete/68034/in+docs
Del: other reasons-- http://master.php.net/note/delete/68034
Reject -- http://master.php.net/note/reject/68034
Search -- http://master.php.net/manage/user-notes.php