summaryrefslogtreecommitdiff
path: root/ext/zlib/tests/003.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/zlib/tests/003.phpt')
-rw-r--r--ext/zlib/tests/003.phpt14
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/zlib/tests/003.phpt b/ext/zlib/tests/003.phpt
new file mode 100644
index 0000000..d9275d9
--- /dev/null
+++ b/ext/zlib/tests/003.phpt
@@ -0,0 +1,14 @@
+--TEST--
+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($original, gzdecode($packed)) == 0) echo "Strings are equal";
+?>
+--EXPECT--
+118 36864
+Strings are equal