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/gzcompress_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/gzcompress_variation1.phpt')
-rw-r--r-- | ext/zlib/tests/gzcompress_variation1.phpt | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/ext/zlib/tests/gzcompress_variation1.phpt b/ext/zlib/tests/gzcompress_variation1.phpt new file mode 100644 index 0000000000..04aac01085 --- /dev/null +++ b/ext/zlib/tests/gzcompress_variation1.phpt @@ -0,0 +1,36 @@ +--TEST-- +Test gzcompress() function : variation +--SKIPIF-- +<?php +if (!extension_loaded("zlib")) { + print "skip - ZLIB extension not loaded"; +} +?> +--FILE-- +<?php +/* Prototype : string gzcompress(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 gzcompress() : variation ***\n"; + + + +echo "\n-- Testing multiple compression --\n"; +$output = gzcompress($data); +var_dump( md5($output)); +var_dump(md5(gzcompress($output))); + +?> +===Done=== +--EXPECTF-- +*** Testing gzcompress() : variation *** + +-- Testing multiple compression -- +string(32) "764809aef15bb34cb73ad49ecb600d99" +string(32) "eba942bc2061f23ea8688cc5101872a4" +===Done===
\ No newline at end of file |