1--TEST-- 2Test gzopen() function : variation: relative/absolute file 3--SKIPIF-- 4<?php 5if (!extension_loaded("zlib")) { 6 print "skip - ZLIB extension not loaded"; 7} 8?> 9--FILE-- 10<?php 11echo "*** Testing gzopen() : variation ***\n"; 12$absfile = __FILE__.'.tmp'; 13$relfile = "gzopen_variation6.tmp"; 14 15$h = gzopen($absfile, "w"); 16gzwrite($h, "This is an absolute file"); 17gzclose($h); 18 19$h = gzopen($relfile, "w"); 20gzwrite($h, "This is a relative file"); 21gzclose($h); 22 23$h = gzopen($absfile, "r"); 24gzpassthru($h); 25fclose($h); 26echo "\n"; 27 28$h = gzopen($relfile, "r"); 29gzpassthru($h); 30gzclose($h); 31echo "\n"; 32 33unlink($absfile); 34unlink($relfile); 35?> 36--EXPECT-- 37*** Testing gzopen() : variation *** 38This is an absolute file 39This is a relative file 40