xref: /PHP-7.4/ext/zlib/tests/bug55544.phpt (revision f16b0121)
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 not for windows");
8}
9if (PHP_OS == "Darwin") {
10	die("skip not for darwin");
11}
12?>
13--INI--
14output_handler=ob_gzhandler
15zlib.output_compression=0
16--ENV--
17HTTP_ACCEPT_ENCODING=gzip
18--FILE--
19<?php
20echo "hi";
21?>
22--EXPECT--
23�����������*��
24--EXPECTHEADERS--
25Content-Encoding: gzip
26Vary: Accept-Encoding
27