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