xref: /PHP-8.0/ext/zlib/tests/003.phpt (revision 71c9674e)
1--TEST--
2gzencode()
3--SKIPIF--
4<?php if (!extension_loaded("zlib")) print "skip"; ?>
5--FILE--
6<?php
7$original = str_repeat("hallo php",4096);
8$packed = gzencode($original);
9echo strlen($packed)." ".strlen($original). "\n";
10if (strcmp($original, gzdecode($packed)) == 0) echo "Strings are equal";
11?>
12--EXPECT--
13118 36864
14Strings are equal
15