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, [int encoding]])
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
21echo "\n-- Testing multiple compression --\n";
22$output = gzcompress($data);
23var_dump( md5($output));
24var_dump(md5(gzcompress($output)));
25
26?>
27===Done===
28--EXPECTF--
29*** Testing gzcompress() : variation ***
30
31-- Testing multiple compression --
32string(32) "764809aef15bb34cb73ad49ecb600d99"
33string(32) "eba942bc2061f23ea8688cc5101872a4"
34===Done===
35