1--TEST--
2Test function gzfile() by substituting argument 2 with int values.
3--EXTENSIONS--
4zlib
5--FILE--
6<?php
7
8
9$filename = __DIR__."/004.txt.gz";
10
11
12$variation = array (
13    'int 0' => 0,
14    'int 1' => 1,
15    'int 12345' => 12345,
16    'int -12345' => -2345,
17    );
18
19
20foreach ( $variation as $var ) {
21  var_dump(gzfile( $filename, $var  ) );
22}
23?>
24--EXPECT--
25array(6) {
26  [0]=>
27  string(36) "When you're taught through feelings
28"
29  [1]=>
30  string(26) "Destiny flying high above
31"
32  [2]=>
33  string(38) "all I know is that you can realize it
34"
35  [3]=>
36  string(18) "Destiny who cares
37"
38  [4]=>
39  string(19) "as it turns around
40"
41  [5]=>
42  string(39) "and I know that it descends down on me
43"
44}
45array(6) {
46  [0]=>
47  string(36) "When you're taught through feelings
48"
49  [1]=>
50  string(26) "Destiny flying high above
51"
52  [2]=>
53  string(38) "all I know is that you can realize it
54"
55  [3]=>
56  string(18) "Destiny who cares
57"
58  [4]=>
59  string(19) "as it turns around
60"
61  [5]=>
62  string(39) "and I know that it descends down on me
63"
64}
65array(6) {
66  [0]=>
67  string(36) "When you're taught through feelings
68"
69  [1]=>
70  string(26) "Destiny flying high above
71"
72  [2]=>
73  string(38) "all I know is that you can realize it
74"
75  [3]=>
76  string(18) "Destiny who cares
77"
78  [4]=>
79  string(19) "as it turns around
80"
81  [5]=>
82  string(39) "and I know that it descends down on me
83"
84}
85array(6) {
86  [0]=>
87  string(36) "When you're taught through feelings
88"
89  [1]=>
90  string(26) "Destiny flying high above
91"
92  [2]=>
93  string(38) "all I know is that you can realize it
94"
95  [3]=>
96  string(18) "Destiny who cares
97"
98  [4]=>
99  string(19) "as it turns around
100"
101  [5]=>
102  string(39) "and I know that it descends down on me
103"
104}
105