1--TEST--
2Test function gzfile() by substituting argument 1 with string 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$heredoc = <<<EOT
15hello world
16EOT;
17
18$variation_array = array(
19  'string DQ' => "string",
20  'string SQ' => 'string',
21  'mixed case string' => "sTrInG",
22  'heredoc' => $heredoc
23  );
24
25
26foreach ( $variation_array as $var ) {
27  var_dump(gzfile( $var ,  $use_include_path ) );
28}
29?>
30--EXPECTF--
31Warning: gzfile(string): Failed to open stream: No such file or directory in %s on line %d
32bool(false)
33
34Warning: gzfile(string): Failed to open stream: No such file or directory in %s on line %d
35bool(false)
36
37Warning: gzfile(sTrInG): Failed to open stream: No such file or directory in %s on line %d
38bool(false)
39
40Warning: gzfile(hello world): Failed to open stream: No such file or directory in %s on line %d
41bool(false)
42