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 = __DIR__."/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--EXPECT--
24string(30) "When you're taught through fee"
25string(10) "When you'r"
26string(15) "lings
27Destiny f"
28string(50) "e taught through feelings
29Destiny flying high abov"
30