1--TEST-- 2Test function gzfile() 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(gzfile( $var , $use_include_path ) ); 26} 27?> 28--EXPECTF-- 29Warning: gzfile(string): Failed to open stream: No such file or directory in %s on line %d 30bool(false) 31 32Warning: gzfile(string): Failed to open stream: No such file or directory in %s on line %d 33bool(false) 34 35Warning: gzfile(sTrInG): Failed to open stream: No such file or directory in %s on line %d 36bool(false) 37 38Warning: gzfile(hello world): Failed to open stream: No such file or directory in %s on line %d 39bool(false) 40