1--TEST-- 2Test function readgzfile() reading a gzip 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_basic.txt.gz'; 15mkdir($dirname); 16$h = gzopen($filename, 'w'); 17gzwrite($h, $plaintxt); 18gzclose($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