2 Test gzopen() function : basic functionality
5 if (!extension_loaded("zlib")) {
6 print "skip - ZLIB extension not loaded";
11 /* Prototype : resource gzopen(string filename, string mode [, int use_include_path])
12 * Description: Open a .gz-file and return a .gz-file pointer
13 * Source code: ext/zlib/zlib.c
17 echo "*** Testing gzopen() : basic functionality ***\n";
20 // Initialise all required variables
21 $filename = dirname(__FILE__)."/004.txt.gz";
23 $use_include_path = false;
25 // Calling gzopen() with all possible arguments
26 $h = gzopen($filename, $mode, $use_include_path);
30 // Calling gzopen() with mandatory arguments
31 $h = gzopen($filename, $mode);
38 *** Testing gzopen() : basic functionality ***
39 When you're taught through feelings
40 Destiny flying high above
41 all I know is that you can realize it
44 and I know that it descends down on me
45 When you're taught through feelings
46 Destiny flying high above
47 all I know is that you can realize it
50 and I know that it descends down on me