--- embedaddon/php/ext/zlib/tests/gzuncompress_error1.phpt 2012/02/21 23:48:05 1.1 +++ embedaddon/php/ext/zlib/tests/gzuncompress_error1.phpt 2012/05/29 12:34:38 1.1.1.2 @@ -14,8 +14,6 @@ if (!extension_loaded("zlib")) { * Alias to functions: */ - - echo "*** Testing gzuncompress() : error conditions ***\n"; // Zero arguments @@ -29,14 +27,12 @@ $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)); @@ -68,7 +64,7 @@ NULL -- Testing with a buffer that is too small -- -Warning: gzuncompress(): buffer error in %s on line %d +Warning: gzuncompress(): insufficient memory in %s on line %d bool(false) -- Testing with incorrect arguments -- @@ -81,4 +77,4 @@ NULL Warning: gzuncompress() expects parameter 2 to be long, string given in %s on line %d NULL -===DONE=== \ No newline at end of file +===DONE===