xref: /PHP-7.2/ext/zlib/tests/gzrewind_error.phpt (revision f1d7e3ca)
1--TEST--
2Test function gzrewind() by calling it more than or less than its expected arguments
3--SKIPIF--
4<?php
5if (!extension_loaded("zlib")) {
6	print "skip - ZLIB extension not loaded";
7}
8?>
9--FILE--
10<?php
11
12$f = dirname(__FILE__)."/004.txt.gz";
13$h = gzopen($f, 'r');
14$extra_arg = 'nothing';
15var_dump(gzrewind( $h, $extra_arg ) );
16var_dump(gzrewind());
17gzclose($h);
18
19?>
20===DONE===
21--EXPECTF--
22Warning: gzrewind() expects exactly 1 parameter, 2 given in %s on line %d
23bool(false)
24
25Warning: gzrewind() expects exactly 1 parameter, 0 given in %s on line %d
26bool(false)
27===DONE===
28