mirror of
https://github.com/php/php-src.git
synced 2024-10-19 15:34:25 +00:00
28 lines
564 B
PHP
28 lines
564 B
PHP
--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===
|