1--TEST--
2Test function readgzfile() by substituting argument 1 with string values.
3--EXTENSIONS--
4zlib
5--FILE--
6<?php
7
8
9$use_include_path = false;
10
11
12$heredoc = <<<EOT
13hello world
14EOT;
15
16$variation_array = array(
17  'string DQ' => "string",
18  'string SQ' => 'string',
19  'mixed case string' => "sTrInG",
20  'heredoc' => $heredoc
21  );
22
23
24foreach ( $variation_array as $var ) {
25  var_dump(readgzfile( $var ,  $use_include_path ) );
26}
27?>
28--EXPECTF--
29Warning: readgzfile(string): Failed to open stream: No such file or directory in %s on line %d
30bool(false)
31
32Warning: readgzfile(string): Failed to open stream: No such file or directory in %s on line %d
33bool(false)
34
35Warning: readgzfile(sTrInG): Failed to open stream: No such file or directory in %s on line %d
36bool(false)
37
38Warning: readgzfile(hello world): Failed to open stream: No such file or directory in %s on line %d
39bool(false)
40