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