xref: /PHP-8.0/ext/zlib/tests/ob_005.phpt (revision ded3d984)
1--TEST--
2ob_gzhandler
3--SKIPIF--
4<?php
5if (!extension_loaded("zlib")) die("skip need ext/zlib");
6if (false === stristr(PHP_SAPI, "cgi")) die("skip need sapi/cgi");
7?>
8--INI--
9zlib.output_compression=0
10--ENV--
11HTTP_ACCEPT_ENCODING=gzip
12--POST--
13dummy=42
14--FILE--
15<?php
16ob_start("ob_gzhandler");
17ini_set("zlib.output_compression", 0);
18echo "hi\n";
19?>
20--EXPECT--
21hi
22--EXPECTHEADERS--
23