xref: /PHP-8.1/ext/zlib/tests/003.phpt (revision 74859783)
1--TEST--
2gzencode()
3--EXTENSIONS--
4zlib
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