1--TEST--
2Test function gzpassthru() by calling it with its expected arguments
3--SKIPIF--
4<?php
5if (!extension_loaded("zlib")) {
6    print "skip - ZLIB extension not loaded";
7}
8?>
9--FILE--
10<?php
11
12// note that gzpassthru is an alias to fpassthru. parameter checking tests will be
13// the same as fpassthru
14
15$f = __DIR__."/004.txt.gz";
16$h = gzopen($f, 'r');
17var_dump(gzpassthru($h));
18var_dump(gzpassthru($h));
19gzclose($h);
20
21?>
22--EXPECT--
23When you're taught through feelings
24Destiny flying high above
25all I know is that you can realize it
26Destiny who cares
27as it turns around
28and I know that it descends down on me
29int(176)
30int(0)
31