xref: /PHP-5.5/ext/zlib/tests/bug65391.phpt (revision 275e41cb)
1--TEST--
2Bug #65391 (Unable to send vary header user-agent when ob_start('ob_gzhandler') is called)
3--SKIPIF--
4<?php
5extension_loaded("zlib") or die("skip need zlib");
6?>
7--GET--
8dummy=1
9--INI--
10expose_php=On
11--FILE--
12<?php
13header("Vary: Cookie");
14ob_start("ob_gzhandler");
15
16// run-tests cannot test for a multiple Vary header
17ob_flush();
18print_r(headers_list());
19
20?>
21Done
22--EXPECTF--
23Array
24(
25    [0] => X-Powered-By: PHP/%s
26    [1] => Vary: Cookie
27    [2] => Vary: Accept-Encoding
28)
29Done
30
31