1--TEST-- 2Test function readgzfile() by calling it more than or less than its expected arguments 3--SKIPIF-- 4<?php 5if (!extension_loaded('zlib')) die ('skip zlib extension not available in this build'); 6?> 7--FILE-- 8<?php 9 10 11$filename = dirname(__FILE__)."/004.txt.gz"; 12$use_include_path = false; 13$extra_arg = 'nothing'; 14 15var_dump(readgzfile( $filename, $use_include_path, $extra_arg ) ); 16 17var_dump(readgzfile( ) ); 18 19 20?> 21===DONE=== 22--EXPECTF-- 23Warning: readgzfile() expects at most 2 parameters, 3 given in %s on line %d 24NULL 25 26Warning: readgzfile() expects at least 1 parameter, 0 given in %s on line %d 27NULL 28===DONE=== 29