1--TEST--
2Test function gzfile() by substituting argument 2 with float values.
3--SKIPIF--
4<?php
5if (!extension_loaded('zlib')) die ('skip zlib extension not available in this build');
6if (PHP_INT_SIZE != 8) die('skip 64-bit only');
7?>
8--FILE--
9<?php
10
11
12$filename = __DIR__."/004.txt.gz";
13
14
15$variation = array(
16  'float 10.5' => 10.5,
17  'float -10.5' => -10.5,
18  'float 12.3456789000e10' => 12.3456789000e10,
19  'float -12.3456789000e10' => -12.3456789000e10,
20  'float .5' => .5,
21  );
22
23
24foreach ( $variation as $var ) {
25  var_dump(gzfile( $filename, $var  ) );
26}
27?>
28===DONE===
29--EXPECT--
30array(6) {
31  [0]=>
32  string(36) "When you're taught through feelings
33"
34  [1]=>
35  string(26) "Destiny flying high above
36"
37  [2]=>
38  string(38) "all I know is that you can realize it
39"
40  [3]=>
41  string(18) "Destiny who cares
42"
43  [4]=>
44  string(19) "as it turns around
45"
46  [5]=>
47  string(39) "and I know that it descends down on me
48"
49}
50array(6) {
51  [0]=>
52  string(36) "When you're taught through feelings
53"
54  [1]=>
55  string(26) "Destiny flying high above
56"
57  [2]=>
58  string(38) "all I know is that you can realize it
59"
60  [3]=>
61  string(18) "Destiny who cares
62"
63  [4]=>
64  string(19) "as it turns around
65"
66  [5]=>
67  string(39) "and I know that it descends down on me
68"
69}
70array(6) {
71  [0]=>
72  string(36) "When you're taught through feelings
73"
74  [1]=>
75  string(26) "Destiny flying high above
76"
77  [2]=>
78  string(38) "all I know is that you can realize it
79"
80  [3]=>
81  string(18) "Destiny who cares
82"
83  [4]=>
84  string(19) "as it turns around
85"
86  [5]=>
87  string(39) "and I know that it descends down on me
88"
89}
90array(6) {
91  [0]=>
92  string(36) "When you're taught through feelings
93"
94  [1]=>
95  string(26) "Destiny flying high above
96"
97  [2]=>
98  string(38) "all I know is that you can realize it
99"
100  [3]=>
101  string(18) "Destiny who cares
102"
103  [4]=>
104  string(19) "as it turns around
105"
106  [5]=>
107  string(39) "and I know that it descends down on me
108"
109}
110array(6) {
111  [0]=>
112  string(36) "When you're taught through feelings
113"
114  [1]=>
115  string(26) "Destiny flying high above
116"
117  [2]=>
118  string(38) "all I know is that you can realize it
119"
120  [3]=>
121  string(18) "Destiny who cares
122"
123  [4]=>
124  string(19) "as it turns around
125"
126  [5]=>
127  string(39) "and I know that it descends down on me
128"
129}
130===DONE===
131