Annotation of embedaddon/php/ext/zlib/tests/gzdeflate_variation1.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Test gzdeflate() function : variation
! 3: --SKIPIF--
! 4: <?php
! 5: if (!extension_loaded("zlib")) {
! 6: print "skip - ZLIB extension not loaded";
! 7: }
! 8: ?>
! 9: --FILE--
! 10: <?php
! 11: /* Prototype : string gzdeflate(string data [, int level])
! 12: * Description: Gzip-compress a string
! 13: * Source code: ext/zlib/zlib.c
! 14: * Alias to functions:
! 15: */
! 16:
! 17: include(dirname(__FILE__) . '/data.inc');
! 18:
! 19: echo "*** Testing gzdeflate() : variation ***\n";
! 20:
! 21:
! 22:
! 23: echo "\n-- Testing multiple compression --\n";
! 24: $output = gzdeflate($data);
! 25: var_dump( md5($output));
! 26: var_dump(md5(gzdeflate($output)));
! 27:
! 28: ?>
! 29: ===Done===
! 30: --EXPECT--
! 31: *** Testing gzdeflate() : variation ***
! 32:
! 33: -- Testing multiple compression --
! 34: string(32) "078554fe65e06f6ff01eab51cfc7ae9b"
! 35: string(32) "86b9f895ef1377da5269ec3cb2729f71"
! 36: ===Done===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>