Edit report at https://bugs.php.net/bug.php?id=65391&edit=1
ID: 65391 Updated by: m...@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 +Status: Closed Type: Bug Package: Output Control Operating System: any PHP Version: 5.4.17 Assigned To: mike Block user comment: N Private report: N New Comment: Automatic comment on behalf of mike Revision: http://git.php.net/?p=php-src.git;a=commit;h=5cea7a9047ca45c99b107a89d833c2d0dbe96ec8 Log: fix bug #65391 Previous Comments: ------------------------------------------------------------------------ [2013-08-09 08:32:33] m...@php.net Yasuo, are you already fixing this, or shall I? ------------------------------------------------------------------------ [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] yohg...@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] yohg...@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] yohg...@php.net Reclassified as output control issue, since this is output issue. ------------------------------------------------------------------------ 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