mirror of
https://github.com/php/php-src.git
synced 2024-11-25 19:05:31 +08:00
d30590369a
change one realloc to erealloc (though this code is never reached IMHO) add regression tests
18 lines
393 B
PHP
18 lines
393 B
PHP
--TEST--
|
|
gzcompress()/gzuncompress()
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("zlib")) print "skip"; ?>
|
|
--POST--
|
|
--GET--
|
|
--FILE--
|
|
<?php
|
|
$original = str_repeat("hallo php",4096);
|
|
$packed=gzcompress($original);
|
|
echo strlen($packed)." ".strlen($original)."\n";
|
|
$unpacked=gzuncompress($packed);
|
|
if (strcmp($original,$unpacked)==0) echo "Strings are equal";
|
|
?>
|
|
--EXPECT--
|
|
106 36864
|
|
Strings are equal
|