1--TEST-- 2Test function readgzfile() by substituting agument 2 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$filename = $filename = dirname(__FILE__)."/004.txt.gz"; 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(readgzfile( $filename, $var ) ); 28} 29?> 30===DONE=== 31--EXPECTF-- 32 33Warning: readgzfile() expects parameter 2 to be long, string given in %s on line %d 34NULL 35 36Warning: readgzfile() expects parameter 2 to be long, string given in %s on line %d 37NULL 38 39Warning: readgzfile() expects parameter 2 to be long, string given in %s on line %d 40NULL 41 42Warning: readgzfile() expects parameter 2 to be long, string given in %s on line %d 43NULL 44===DONE===