Annotation of embedaddon/php/ext/zlib/tests/ob_004.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: ob_gzhandler
! 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=gzip
! 12: --POST--
! 13: dummy=42
! 14: --FILE--
! 15: <?php
! 16: ob_start("ob_gzhandler");
! 17: echo "hi\n";
! 18: ?>
! 19: --EXPECTF--
! 20: ‹%s
! 21: --EXPECTHEADERS--
! 22: Content-Encoding: gzip
! 23: Vary: Accept-Encoding
! 24:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>