1--TEST-- 2Test function readgzfile() reading a plain relative file 3--EXTENSIONS-- 4zlib 5--FILE-- 6<?php 7$plaintxt = <<<EOT 8hello world 9is a very common test 10for all languages 11 12EOT; 13$dirname = 'readgzfile_temp'; 14$filename = $dirname.'/readgzfile_basic2.txt'; 15mkdir($dirname); 16$h = fopen($filename, 'w'); 17fwrite($h, $plaintxt); 18fclose($h); 19 20 21var_dump(readgzfile( $filename ) ); 22 23unlink($filename); 24rmdir($dirname); 25?> 26--EXPECT-- 27hello world 28is a very common test 29for all languages 30int(52) 31