xref: /PHP-5.5/ext/zlib/tests/gzfile_error.phpt (revision 8f9ec423)
1--TEST--
2Test function gzfile() 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(gzfile( $filename, $use_include_path, $extra_arg ) );
16
17var_dump(gzfile(  ) );
18
19
20?>
21===DONE===
22--EXPECTF--
23
24Warning: gzfile() expects at most 2 parameters, 3 given in %s on line %d
25NULL
26
27Warning: gzfile() expects at least 1 parameter, 0 given in %s on line %d
28NULL
29===DONE===