1--TEST-- 2Test function gzgets() 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 12$f = dirname(__FILE__)."/004.txt.gz"; 13$h = gzopen($f, 'r'); 14$length = 10; 15$extra_arg = 'nothing'; 16var_dump(gzgets( $h, $length, $extra_arg ) ); 17 18var_dump(gzgets()); 19 20 21?> 22===DONE=== 23--EXPECTF-- 24Warning: gzgets() expects at most 2 parameters, 3 given in %s on line %d 25bool(false) 26 27Warning: gzgets() expects at least 1 parameter, 0 given in %s on line %d 28bool(false) 29===DONE=== 30