Annotation of embedaddon/php/ext/zlib/tests/ob_gzhandler_legacy_002.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: ob_gzhandler legacy
! 3: --SKIPIF--
! 4: <?php
! 5: if (!extension_loaded("zlib")) die("skip need ext/zlib");
! 6: if (false === stristr(PHP_SAPI, "cgi")) die("skip need sapi/cgi");
! 7: ?>
! 8: --INI--
! 9: zlib.output_compression=0
! 10: --ENV--
! 11: HTTP_ACCEPT_ENCODING=
! 12: --POST--
! 13: dummy=42
! 14: --FILE--
! 15: <?php
! 16: if (false !== ob_gzhandler("", PHP_OUTPUT_HANDLER_START)) {
! 17: ini_set("zlib.output_compression", 0);
! 18: ob_start("ob_gzhandler");
! 19: }
! 20: echo "hi\n";
! 21: ?>
! 22: --EXPECTF--
! 23: hi
! 24: --EXPECTHEADERS--
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>