1
0
mirror of https://github.com/php/php-src.git synced 2026-03-29 19:52:20 +02:00
Files
archived-php-src/ext/zlib/tests/gzread_error.phpt

32 lines
561 B
PHP

--TEST--
Test function gzread() 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');
$length = 10;
$extra_arg = 'nothing';
var_dump(gzread( $h, $length, $extra_arg ) );
var_dump(gzread());
gzclose($h);
?>
===DONE===
--EXPECTF--
Warning: Wrong parameter count for gzread() in %s on line %d
NULL
Warning: Wrong parameter count for gzread() in %s on line %d
NULL
===DONE===