summaryrefslogtreecommitdiff
path: root/ext/zlib/tests/gzgetc_error.phpt
blob: 14e6528a38dca0448cad90ac8f8f0dd6f34a774f (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
28
29
--TEST--
Test function gzgetc() 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(gzgetc( $h, $extra_arg ) );

var_dump(gzgetc() );

gzclose($h);
?>
===DONE===
--EXPECTF--

Warning: Wrong parameter count for gzgetc() in %s on line %d
NULL

Warning: Wrong parameter count for gzgetc() in %s on line %d
NULL
===DONE===