xref: /PHP-5.4/ext/zlib/tests/bug65391.phpt (revision ac28283b)
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--FILE--
10<?php
11header("Vary: Cookie");
12ob_start("ob_gzhandler");
13
14// run-tests cannot test for a multiple Vary header
15ob_flush();
16print_r(headers_list());
17
18?>
19Done
20--EXPECTF--
21Array
22(
23    [0] => X-Powered-By: PHP/%s
24    [1] => Vary: Cookie
25    [2] => Vary: Accept-Encoding
26)
27Done
28
29