1--TEST--
2Test function gzfile() 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(gzfile( $filename, $var  ) );
24}
25?>
26===DONE===
27--EXPECT--
28array(6) {
29  [0]=>
30  string(36) "When you're taught through feelings
31"
32  [1]=>
33  string(26) "Destiny flying high above
34"
35  [2]=>
36  string(38) "all I know is that you can realize it
37"
38  [3]=>
39  string(18) "Destiny who cares
40"
41  [4]=>
42  string(19) "as it turns around
43"
44  [5]=>
45  string(39) "and I know that it descends down on me
46"
47}
48array(6) {
49  [0]=>
50  string(36) "When you're taught through feelings
51"
52  [1]=>
53  string(26) "Destiny flying high above
54"
55  [2]=>
56  string(38) "all I know is that you can realize it
57"
58  [3]=>
59  string(18) "Destiny who cares
60"
61  [4]=>
62  string(19) "as it turns around
63"
64  [5]=>
65  string(39) "and I know that it descends down on me
66"
67}
68array(6) {
69  [0]=>
70  string(36) "When you're taught through feelings
71"
72  [1]=>
73  string(26) "Destiny flying high above
74"
75  [2]=>
76  string(38) "all I know is that you can realize it
77"
78  [3]=>
79  string(18) "Destiny who cares
80"
81  [4]=>
82  string(19) "as it turns around
83"
84  [5]=>
85  string(39) "and I know that it descends down on me
86"
87}
88array(6) {
89  [0]=>
90  string(36) "When you're taught through feelings
91"
92  [1]=>
93  string(26) "Destiny flying high above
94"
95  [2]=>
96  string(38) "all I know is that you can realize it
97"
98  [3]=>
99  string(18) "Destiny who cares
100"
101  [4]=>
102  string(19) "as it turns around
103"
104  [5]=>
105  string(39) "and I know that it descends down on me
106"
107}
108===DONE===