xref: /PHP-8.0/ext/zlib/tests/ob_001.phpt (revision d679f022)
1--TEST--
2zlib.output_compression
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--GET--
9a=b
10--INI--
11zlib.output_compression=1
12--ENV--
13HTTP_ACCEPT_ENCODING=gzip
14--FILE--
15<?php
16echo "hi\n";
17?>
18--EXPECTF--
19�%a
20