xref: /PHP-7.1/ext/zlib/tests/gztell_error.phpt (revision 113213f0)
1--TEST--
2Test function gztell() 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$f = dirname(__FILE__)."/004.txt.gz";
12$h = gzopen($f, 'r');
13$extra_arg = 'nothing';
14var_dump(gztell( $h, $extra_arg ) );
15var_dump(gztell());
16gzclose($h);
17?>
18===DONE===
19--EXPECTF--
20Warning: gztell() expects exactly 1 parameter, 2 given in %s on line %d
21bool(false)
22
23Warning: gztell() expects exactly 1 parameter, 0 given in %s on line %d
24bool(false)
25===DONE===
26