2
Test gzopen() function : variation: relative/absolute file
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() : variation ***\n";
18
$absfile = __FILE__.'.tmp';
19
$relfile = "gzopen_variation6.tmp";
21
$h = gzopen($absfile, "w");
22
gzwrite($h, "This is an absolute file");
25
$h = gzopen($relfile, "w");
26
gzwrite($h, "This is a relative file");
29
$h = gzopen($absfile, "r");
34
$h = gzopen($relfile, "r");
44
*** Testing gzopen() : variation ***
45
This is an absolute file
46
This is a relative file