xref: /PHP-7.2/ext/zlib/tests/ob_004.phpt (revision f1d7e3ca)
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");
17echo "hi\n";
18?>
19--EXPECTF--
20�%a
21--EXPECTHEADERS--
22Content-Encoding: gzip
23Vary: Accept-Encoding
24