Bug #65391 [Ver]: Unable to send vary header user-agent when ob_start('ob_gzhandler') is called
| From: | mike@php.net | Date: | Fri, 09 Aug 2013 08:32:33 +0000 |
| Subject: | Bug #65391 [Ver]: Unable to send vary header user-agent when ob_start('ob_gzhandler') is called | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-180814@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=65391&edit=1
ID: 65391
Updated by: mike@php.net
Reported by: nikcomestotalk at gmail dot com
Summary: Unable to send vary header user-agent when
ob_start('ob_gzhandler') is called
Status: Verified
Type: Bug
Package: Output Control
Operating System: any
PHP Version: 5.4.17
Block user comment: N
Private report: N
New Comment:
Yasuo, are you already fixing this, or shall I?
Previous Comments:
------------------------------------------------------------------------
[2013-08-06 06:52:56] nikcomestotalk at gmail dot com
Not yet fixed, still getting "Vary: Accept-Encoding" only
But working fine on version 5.3.2 and 5.2[Checked on my other server having this
version on php]
------------------------------------------------------------------------
[2013-08-06 05:26:45] yohgaki@php.net
[yohgaki@dev PHP-5.4]$ ./sapi/cgi/php-cgi
<?php
ob_start("ob_gzhandler");
header("Vary: User-Agent,Accept,Accept-Encoding");
ob_flush();
X-Powered-By: PHP/5.4.19-dev
Vary: Accept-Encoding
Content-type: text/html
------------------------------------------------------------------------
[2013-08-06 04:57:04] yohgaki@php.net
Oops, you have
header("Vary: User-Agent,Accept,Accept-Encoding");
ob_start("ob_gzhandler");
ob_flush();
Change it to
ob_start("ob_gzhandler");
header("Vary: User-Agent,Accept,Accept-Encoding");
ob_flush();
Then it should work. If it works, please close this bug. If not, please reopen.
------------------------------------------------------------------------
[2013-08-06 04:52:55] yohgaki@php.net
Reclassified as output control issue, since this is output issue.
------------------------------------------------------------------------
[2013-08-06 04:50:39] yohgaki@php.net
zlib module is the one writing Vary header.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=65391
--
Edit this bug report at https://bugs.php.net/bug.php?id=65391&edit=1