1--TEST-- 2Test gzopen() function : basic functionality 3--SKIPIF-- 4<?php 5if (!extension_loaded("zlib")) { 6 print "skip - ZLIB extension not loaded"; 7} 8?> 9--FILE-- 10<?php 11echo "*** Testing gzopen() : basic functionality ***\n"; 12 13 14// Initialise all required variables 15$filename = __DIR__."/004.txt.gz"; 16$mode = 'r'; 17$use_include_path = false; 18 19// Calling gzopen() with all possible arguments 20$h = gzopen($filename, $mode, $use_include_path); 21gzpassthru($h); 22gzclose($h); 23 24// Calling gzopen() with mandatory arguments 25$h = gzopen($filename, $mode); 26gzpassthru($h); 27gzclose($h); 28 29?> 30--EXPECT-- 31*** Testing gzopen() : basic functionality *** 32When you're taught through feelings 33Destiny flying high above 34all I know is that you can realize it 35Destiny who cares 36as it turns around 37and I know that it descends down on me 38When you're taught through feelings 39Destiny flying high above 40all I know is that you can realize it 41Destiny who cares 42as it turns around 43and I know that it descends down on me 44