summaryrefslogtreecommitdiff
path: root/ext/zlib/tests/gzuncompress_error1.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/zlib/tests/gzuncompress_error1.phpt')
-rw-r--r--ext/zlib/tests/gzuncompress_error1.phpt8
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/zlib/tests/gzuncompress_error1.phpt b/ext/zlib/tests/gzuncompress_error1.phpt
index f26a4f5..66e5b2a 100644
--- a/ext/zlib/tests/gzuncompress_error1.phpt
+++ b/ext/zlib/tests/gzuncompress_error1.phpt
@@ -14,6 +14,8 @@ if (!extension_loaded("zlib")) {
* Alias to functions:
*/
+
+
echo "*** Testing gzuncompress() : error conditions ***\n";
// Zero arguments
@@ -27,12 +29,14 @@ $length = 10;
$extra_arg = 10;
var_dump( gzuncompress($data, $length, $extra_arg) );
+
echo "\n-- Testing with a buffer that is too small --\n";
$short_len = strlen($data) - 1;
$compressed = gzcompress($data);
var_dump(gzuncompress($compressed, $short_len));
+
echo "\n-- Testing with incorrect arguments --\n";
var_dump(gzuncompress(123));
@@ -64,7 +68,7 @@ NULL
-- Testing with a buffer that is too small --
-Warning: gzuncompress(): insufficient memory in %s on line %d
+Warning: gzuncompress(): buffer error in %s on line %d
bool(false)
-- Testing with incorrect arguments --
@@ -77,4 +81,4 @@ NULL
Warning: gzuncompress() expects parameter 2 to be long, string given in %s on line %d
NULL
-===DONE===
+===DONE=== \ No newline at end of file