PHP userland backwards compatibility layer that emulates PHP 5.5+ core functions.

⌈⌋ ⎇ branch:  upgrade.php


Artifact [00936213d0]

Artifact 00936213d0308ea27d99b18c25022b57ca0cfe76:

  • File doc/tests1all/gzdecode.phpt — part of check-in [51e3884900] at 2010-06-22 17:03:27 on branch trunk — upgradephp-15 (user: mario size: 786)

--TEST--
gzdecode
--FILE--
<?php

$orig =
"ORIGINAL_TEXT.................................................................................................................................................................................................................................End";
$gz = gzencode($orig);
echo "strlen(\$orig) == ".strlen($orig)."\n";
echo "strlen(\$gz) == ".strlen($gz)."\n...\n";

$text = gzdecode($gz);
echo "gzdecode(\$gz) = \"$text\"\n\n";


?>
--EXPECT--
strlen($orig) == 241
strlen($gz) == 39
...
gzdecode($gz) = "ORIGINAL_TEXT.................................................................................................................................................................................................................................End"