xref: /PHP-8.0/ext/zlib/tests/bug55544-win.phpt (revision c5401854)
1--TEST--
2Bug #55544 (ob_gzhandler always conflicts with zlib.output_compression)
3--SKIPIF--
4<?php
5extension_loaded("zlib") or die("skip");
6if (substr(PHP_OS, 0, 3) != 'WIN') {
7    die("skip windows only");
8}
9include 'func.inc';
10if (version_compare(get_zlib_version(), "1.2.11") < 0) {
11    die("skip - at least zlib 1.2.11 required, got " . get_zlib_version());
12}
13?>
14--INI--
15output_handler=ob_gzhandler
16zlib.output_compression=0
17--ENV--
18HTTP_ACCEPT_ENCODING=gzip
19--FILE--
20<?php
21echo "hi";
22?>
23--EXPECT--
24�������
25����*��
26--EXPECTHEADERS--
27Content-Encoding: gzip
28Vary: Accept-Encoding
29