mirror of
https://github.com/php/php-src.git
synced 2026-04-26 01:18:19 +02:00
add test for ob_gzhandler
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
--TEST--
|
||||
ob_gzhandler legacy
|
||||
--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=
|
||||
--POST--
|
||||
dummy=42
|
||||
--FILE--
|
||||
<?php
|
||||
if (false !== ob_gzhandler("", PHP_OUTPUT_HANDLER_START)) {
|
||||
ini_set("zlib.output_compression", 0);
|
||||
ob_start("ob_gzhandler");
|
||||
}
|
||||
echo "hi\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
hi
|
||||
--EXPECTHEADERS--
|
||||
Reference in New Issue
Block a user