summaryrefslogtreecommitdiff
path: root/ext/zlib/tests/gzencode_basic1.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/zlib/tests/gzencode_basic1.phpt')
-rw-r--r--ext/zlib/tests/gzencode_basic1.phpt24
1 files changed, 12 insertions, 12 deletions
diff --git a/ext/zlib/tests/gzencode_basic1.phpt b/ext/zlib/tests/gzencode_basic1.phpt
index 3c0ec559e9..c6040135f0 100644
--- a/ext/zlib/tests/gzencode_basic1.phpt
+++ b/ext/zlib/tests/gzencode_basic1.phpt
@@ -1,17 +1,17 @@
--TEST--
-Test gzencode() function : basic functionality
+Test gzencode() function : basic functionality
--SKIPIF--
-<?php
+<?php
if (!extension_loaded("zlib")) {
- print "skip - ZLIB extension not loaded";
-}
+ print "skip - ZLIB extension not loaded";
+}
?>
--FILE--
<?php
/* Prototype : string gzencode ( string $data [, int $level [, int $encoding_mode ]] )
- * Description: Gzip-compress a string
+ * Description: Gzip-compress a string
* Source code: ext/zlib/zlib.c
- * Alias to functions:
+ * Alias to functions:
*/
/*
@@ -33,10 +33,10 @@ $smallstring = "A small string to compress\n";
for($i = -1; $i < 10; $i++) {
echo "-- Compression level $i --\n";
$output = gzencode($data, $i);
-
- // Clear OS byte before encode
+
+ // Clear OS byte before encode
$output[9] = "\x00";
-
+
var_dump(md5($output));
}
@@ -44,10 +44,10 @@ for($i = -1; $i < 10; $i++) {
for($i = -1; $i < 10; $i++) {
echo "-- Compression level $i --\n";
$output = gzencode($smallstring, $i);
-
- // Clear OS byte before encode
+
+ // Clear OS byte before encode
$output[9] = "\x00";
-
+
var_dump(md5($output));
}