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