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