xref: /PHP-8.3/ext/zlib/tests/bug51269.phpt (revision 74859783)
1--TEST--
2Bug #51269 (zlib.output_compression Overwrites Vary Header)
3--INI--
4zlib.output_compression=1
5--ENV--
6HTTP_ACCEPT_ENCODING=gzip
7--EXTENSIONS--
8zlib
9--FILE--
10<?php
11header('Vary: Cookie');
12echo 'foo';
13?>
14--EXPECTF--
15%a
16--EXPECTHEADERS--
17Vary: Cookie
18Content-Encoding: gzip
19Vary: Accept-Encoding
20