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--EXTENSIONS--
4zlib
5--FILE--
6<?php
7
8$f = __DIR__."/004.txt.gz";
9$h1 = gzopen($f, 'r');
10$h2 = gzopen($f, 'r');
11
12var_dump(gzread($h1, 30));
13var_dump(gzread($h2, 10));
14var_dump(gzread($h1, 15));
15gzclose($h1);
16var_dump(gzread($h2, 50));
17// deliberately do not close $h2
18?>
19--EXPECT--
20string(30) "When you're taught through fee"
21string(10) "When you'r"
22string(15) "lings
23Destiny f"
24string(50) "e taught through feelings
25Destiny flying high abov"
26