1--TEST--
2ob_gzhandler legacy
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=
12--POST--
13dummy=42
14--FILE--
15<?php
16if (false !== ob_gzhandler("", PHP_OUTPUT_HANDLER_START)) {
17    ini_set("zlib.output_compression", 0);
18    ob_start("ob_gzhandler");
19}
20echo "hi\n";
21?>
22--EXPECT--
23hi
24--EXPECTHEADERS--
25