1--TEST--
2Test function gzopen() by calling it twice on the same file and not closing one of them at the end of the script
3--SKIPIF--
4<?php
5if (!extension_loaded("zlib")) {
6	print "skip - ZLIB extension not loaded";
7}
8?>
9--FILE--
10<?php
11
12$f = dirname(__FILE__)."/004.txt.gz";
13$h1 = gzopen($f, 'r');
14$h2 = gzopen($f, 'r');
15
16var_dump(gzread($h1, 30));
17var_dump(gzread($h2, 10));
18var_dump(gzread($h1, 15));
19gzclose($h1);
20var_dump(gzread($h2, 50));
21// deliberately do not close $h2
22?>
23===DONE===
24--EXPECT--
25string(30) "When you're taught through fee"
26string(10) "When you'r"
27string(15) "lings
28Destiny f"
29string(50) "e taught through feelings
30Destiny flying high abov"
31===DONE===