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