1--TEST--
2Test function readgzfile() by substituting argument 2 with int values.
3--SKIPIF--
4<?php
5if (!extension_loaded('zlib')) die ('skip zlib extension not available in this build');
6?>
7--FILE--
8<?php
9
10
11$filename = dirname(__FILE__)."/004.txt.gz";
12
13
14$variation = array (
15    'int 0' => 0,
16    'int 1' => 1,
17    'int 12345' => 12345,
18    'int -12345' => -2345,
19    );
20
21
22foreach ( $variation as $var ) {
23  var_dump(readgzfile( $filename, $var  ) );
24}
25?>
26===DONE===
27--EXPECT--
28When you're taught through feelings
29Destiny flying high above
30all I know is that you can realize it
31Destiny who cares
32as it turns around
33and I know that it descends down on me
34int(176)
35When you're taught through feelings
36Destiny flying high above
37all I know is that you can realize it
38Destiny who cares
39as it turns around
40and I know that it descends down on me
41int(176)
42When you're taught through feelings
43Destiny flying high above
44all I know is that you can realize it
45Destiny who cares
46as it turns around
47and I know that it descends down on me
48int(176)
49When you're taught through feelings
50Destiny flying high above
51all I know is that you can realize it
52Destiny who cares
53as it turns around
54and I know that it descends down on me
55int(176)
56===DONE===
57