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--EXPECT--
29array(6) {
30  [0]=>
31  string(36) "When you're taught through feelings
32"
33  [1]=>
34  string(26) "Destiny flying high above
35"
36  [2]=>
37  string(38) "all I know is that you can realize it
38"
39  [3]=>
40  string(18) "Destiny who cares
41"
42  [4]=>
43  string(19) "as it turns around
44"
45  [5]=>
46  string(39) "and I know that it descends down on me
47"
48}
49array(6) {
50  [0]=>
51  string(36) "When you're taught through feelings
52"
53  [1]=>
54  string(26) "Destiny flying high above
55"
56  [2]=>
57  string(38) "all I know is that you can realize it
58"
59  [3]=>
60  string(18) "Destiny who cares
61"
62  [4]=>
63  string(19) "as it turns around
64"
65  [5]=>
66  string(39) "and I know that it descends down on me
67"
68}
69array(6) {
70  [0]=>
71  string(36) "When you're taught through feelings
72"
73  [1]=>
74  string(26) "Destiny flying high above
75"
76  [2]=>
77  string(38) "all I know is that you can realize it
78"
79  [3]=>
80  string(18) "Destiny who cares
81"
82  [4]=>
83  string(19) "as it turns around
84"
85  [5]=>
86  string(39) "and I know that it descends down on me
87"
88}
89array(6) {
90  [0]=>
91  string(36) "When you're taught through feelings
92"
93  [1]=>
94  string(26) "Destiny flying high above
95"
96  [2]=>
97  string(38) "all I know is that you can realize it
98"
99  [3]=>
100  string(18) "Destiny who cares
101"
102  [4]=>
103  string(19) "as it turns around
104"
105  [5]=>
106  string(39) "and I know that it descends down on me
107"
108}
109array(6) {
110  [0]=>
111  string(36) "When you're taught through feelings
112"
113  [1]=>
114  string(26) "Destiny flying high above
115"
116  [2]=>
117  string(38) "all I know is that you can realize it
118"
119  [3]=>
120  string(18) "Destiny who cares
121"
122  [4]=>
123  string(19) "as it turns around
124"
125  [5]=>
126  string(39) "and I know that it descends down on me
127"
128}
129