![]() ![]() | ![]() |
Initial revision
--TEST-- ob_gzhandler --SKIPIF-- <?php if (!extension_loaded("zlib")) die("skip need ext/zlib"); if (false === stristr(PHP_SAPI, "cgi")) die("skip need sapi/cgi"); ?> --INI-- zlib.output_compression=0 --ENV-- HTTP_ACCEPT_ENCODING=gzip --POST-- dummy=42 --FILE-- <?php ob_start("ob_gzhandler"); ini_set("zlib.output_compression", 0); echo "hi\n"; ?> --EXPECTF-- hi --EXPECTHEADERS--