diff options
author | andy wharmby <wharmby@php.net> | 2009-01-13 10:08:37 +0000 |
---|---|---|
committer | andy wharmby <wharmby@php.net> | 2009-01-13 10:08:37 +0000 |
commit | 791dabcc3b5ce6a20ec4322955d0be24d0c7d151 (patch) | |
tree | 949678a52219722d3b1cf0a033d8e92648f5e670 /ext/zlib/tests/gzdeflate_variation1.phpt | |
parent | 148ae0cfe070b8065af731d359d7e02590eb55c0 (diff) | |
download | php-git-791dabcc3b5ce6a20ec4322955d0be24d0c7d151.tar.gz |
New zlib extension tests. Tested on Windows, Linux and Linux 64 bit
Diffstat (limited to 'ext/zlib/tests/gzdeflate_variation1.phpt')
-rw-r--r-- | ext/zlib/tests/gzdeflate_variation1.phpt | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/ext/zlib/tests/gzdeflate_variation1.phpt b/ext/zlib/tests/gzdeflate_variation1.phpt new file mode 100644 index 0000000000..75eb16e03d --- /dev/null +++ b/ext/zlib/tests/gzdeflate_variation1.phpt @@ -0,0 +1,36 @@ +--TEST-- +Test gzdeflate() function : variation +--SKIPIF-- +<?php +if (!extension_loaded("zlib")) { + print "skip - ZLIB extension not loaded"; +} +?> +--FILE-- +<?php +/* Prototype : string gzdeflate(string data [, int level]) + * Description: Gzip-compress a string + * Source code: ext/zlib/zlib.c + * Alias to functions: + */ + +include(dirname(__FILE__) . '/data.inc'); + +echo "*** Testing gzdeflate() : variation ***\n"; + + + +echo "\n-- Testing multiple compression --\n"; +$output = gzdeflate($data); +var_dump( md5($output)); +var_dump(md5(gzdeflate($output))); + +?> +===Done=== +--EXPECT-- +*** Testing gzdeflate() : variation *** + +-- Testing multiple compression -- +string(32) "078554fe65e06f6ff01eab51cfc7ae9b" +string(32) "86b9f895ef1377da5269ec3cb2729f71" +===Done=== |