1--TEST--
2Test gzcompress() function : variation
3--SKIPIF--
4<?php
5if (!extension_loaded("zlib")) {
6	print "skip - ZLIB extension not loaded";
7}
8?>
9--FILE--
10<?php
11/* Prototype  : string gzcompress(string data [, int level])
12 * Description: Gzip-compress a string
13 * Source code: ext/zlib/zlib.c
14 * Alias to functions:
15 */
16
17include(dirname(__FILE__) . '/data.inc');
18
19echo "*** Testing gzcompress() : variation ***\n";
20
21
22
23echo "\n-- Testing multiple compression --\n";
24$output = gzcompress($data);
25var_dump( md5($output));
26var_dump(md5(gzcompress($output)));
27
28?>
29===Done===
30--EXPECTF--
31*** Testing gzcompress() : variation ***
32
33-- Testing multiple compression --
34string(32) "764809aef15bb34cb73ad49ecb600d99"
35string(32) "eba942bc2061f23ea8688cc5101872a4"
36===Done===