summaryrefslogtreecommitdiff
path: root/ext/zlib/tests
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2011-09-06 12:30:17 (GMT)
committerPierre Joye <pajoye@php.net>2011-09-06 12:30:17 (GMT)
commit48586679c611efa4147316d2052b1798293ccc51 (patch)
tree7fee1b453a5f7d204913213ad0ad547d11907e1d /ext/zlib/tests
parent4afc80e229bdea64ff3af50b327a78f7d4267ba7 (diff)
downloadphp-48586679c611efa4147316d2052b1798293ccc51.tar.gz
- use only zlib function and reported the failure with base64 in #55620
Diffstat (limited to 'ext/zlib/tests')
-rw-r--r--ext/zlib/tests/003.phpt8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/zlib/tests/003.phpt b/ext/zlib/tests/003.phpt
index 2732d4c..d9275d9 100644
--- a/ext/zlib/tests/003.phpt
+++ b/ext/zlib/tests/003.phpt
@@ -1,13 +1,13 @@
--TEST--
-gzencode()/base64_encode()
+gzencode()
--SKIPIF--
<?php if (!extension_loaded("zlib")) print "skip"; ?>
--FILE--
<?php
$original = str_repeat("hallo php",4096);
-$packed=gzencode($original);
-echo strlen($packed)." ".strlen($original)."\n";
-if (strcmp(base64_encode($packed),"H4sIAAAAAAAAA+3GoQ0AQAgEsFV+NdwJEthf/R6kVU11z9tsRERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERETu5gPlQAe9AJAAAA==")==0) echo "Strings are equal";
+$packed = gzencode($original);
+echo strlen($packed)." ".strlen($original). "\n";
+if (strcmp($original, gzdecode($packed)) == 0) echo "Strings are equal";
?>
--EXPECT--
118 36864