summaryrefslogtreecommitdiff
path: root/ext/zlib/tests/gzeof_error.phpt
blob: a7211d2a72f302495811d6e32a1569ec8c3fc311 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--TEST--
Test function gzeof() 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(gzeof( $h, $extra_arg ) );
var_dump(gzeof() );
gzclose($h)

?>
===DONE===
--EXPECTF--
Warning: gzeof() expects exactly 1 parameter, 2 given in %s on line %d
bool(false)

Warning: gzeof() expects exactly 1 parameter, 0 given in %s on line %d
bool(false)
===DONE===