xref: /PHP-8.2/ext/zlib/tests/bug65391.phpt (revision 39131219)
1--TEST--
2Bug #65391 (Unable to send vary header user-agent when ob_start('ob_gzhandler') is called)
3--EXTENSIONS--
4zlib
5--GET--
6dummy=1
7--INI--
8expose_php=On
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