Updates to Tomato RAF including NGINX && PHP
[tomato.git] / release / src / router / php / ext / zlib / tests / gzfile_variation7.phpt
blobb441dd670e5b58bb097d1a7e8b6e97512e654979
1 --TEST--
2 Test function gzfile() by substituting agument 1 with string values.
3 --SKIPIF--
4 <?php
5 if (!extension_loaded('zlib')) die ('skip zlib extension not available in this build');
6 ?>
7 --FILE--
8 <?php
11 $use_include_path = false;
14 $heredoc = <<<EOT
15 hello world
16 EOT;
18 $variation_array = array(
19   'string DQ' => "string",
20   'string SQ' => 'string',
21   'mixed case string' => "sTrInG",
22   'heredoc' => $heredoc
23   );
26 foreach ( $variation_array as $var ) {
27   var_dump(gzfile( $var ,  $use_include_path ) );
30 ===DONE===
31 --EXPECTF--
33 Warning: gzfile(string): failed to open stream: No such file or directory in %s on line %d
34 bool(false)
36 Warning: gzfile(string): failed to open stream: No such file or directory in %s on line %d
37 bool(false)
39 Warning: gzfile(sTrInG): failed to open stream: No such file or directory in %s on line %d
40 bool(false)
42 Warning: gzfile(hello world): failed to open stream: No such file or directory in %s on line %d
43 bool(false)
44 ===DONE===