summaryrefslogtreecommitdiff
path: root/ext/zlib/tests/gzfile_error.phpt
blob: cea150a86da84dfb2fa9f346c689e1cf18b95531 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--TEST--
Test function gzfile() by calling it more than or less than its expected arguments
--SKIPIF--
<?php
if (!extension_loaded('zlib')) die ('skip zlib extension not available in this build');
?>
--FILE--
<?php


$filename = dirname(__FILE__)."/004.txt.gz";
$use_include_path = false;
$extra_arg = 'nothing';

var_dump(gzfile( $filename, $use_include_path, $extra_arg ) );

var_dump(gzfile(  ) );


?>
===DONE===
--EXPECTF--

Warning: gzfile() expects at most 2 parameters, 3 given in %s on line %d
NULL

Warning: gzfile() expects at least 1 parameter, 0 given in %s on line %d
NULL
===DONE===