diff options
Diffstat (limited to 'ext/zlib/tests/gzrewind_error.phpt')
| -rw-r--r-- | ext/zlib/tests/gzrewind_error.phpt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/ext/zlib/tests/gzrewind_error.phpt b/ext/zlib/tests/gzrewind_error.phpt new file mode 100644 index 0000000000..3a1e4c9b73 --- /dev/null +++ b/ext/zlib/tests/gzrewind_error.phpt @@ -0,0 +1,27 @@ +--TEST-- +Test function gzrewind() by calling it more than or less than its expected arguments +--SKIPIF-- +<?php +if (!extension_loaded("zlib")) { + print "skip - ZLIB extension not loaded"; +} +?> +--FILE-- +<?php + +$f = dirname(__FILE__)."/004.txt.gz"; +$h = gzopen($f, 'r'); +$extra_arg = 'nothing'; +var_dump(gzrewind( $h, $extra_arg ) ); +var_dump(gzrewind()); +gzclose($h); + +?> +===DONE=== +--EXPECTF-- +Warning: gzrewind() expects exactly 1 parameter, 2 given in %s on line %d +bool(false) + +Warning: gzrewind() expects exactly 1 parameter, 0 given in %s on line %d +bool(false) +===DONE===
\ No newline at end of file |
