1--TEST--
2Test function gzfile() by substituting argument 1 with emptyUnsetUndefNull values.
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$use_include_path = false;
12
13
14$unset_var = 10;
15unset($unset_var);
16
17$variation = array(
18  'unset var' => @$unset_var,
19  'undefined var' => @$undefined_var,
20  'empty string DQ' => "",
21  'empty string SQ' => '',
22  'uppercase NULL' => NULL,
23  'lowercase null' => null,
24  );
25
26
27foreach ( $variation as $var ) {
28  var_dump(gzfile( $var ,  $use_include_path ) );
29}
30?>
31===DONE===
32--EXPECTF--
33Warning: gzfile(): Filename cannot be empty in %s on line %d
34bool(false)
35
36Warning: gzfile(): Filename cannot be empty in %s on line %d
37bool(false)
38
39Warning: gzfile(): Filename cannot be empty in %s on line %d
40bool(false)
41
42Warning: gzfile(): Filename cannot be empty in %s on line %d
43bool(false)
44
45Warning: gzfile(): Filename cannot be empty in %s on line %d
46bool(false)
47
48Warning: gzfile(): Filename cannot be empty in %s on line %d
49bool(false)
50===DONE===