1--TEST--
2Test gzuncompress() function : basic functionality
3--EXTENSIONS--
4zlib
5--FILE--
6<?php
7include(__DIR__ . '/data.inc');
8
9echo "*** Testing gzuncompress() : basic functionality ***\n";
10
11
12// Initialise all required variables
13$compressed = gzcompress($data);
14
15echo "\n-- Basic decompress --\n";
16var_dump(strcmp($data, gzuncompress($compressed)));
17
18
19$length = 3547;
20echo "\n-- Calling gzuncompress() with max length of $length --\n";
21echo "Result length is ".  strlen(gzuncompress($compressed, $length)) .  "\n";
22
23?>
24--EXPECT--
25*** Testing gzuncompress() : basic functionality ***
26
27-- Basic decompress --
28int(0)
29
30-- Calling gzuncompress() with max length of 3547 --
31Result length is 3547
32