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