1--TEST--
2Test function readgzfile() 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(readgzfile( $filename, $var  ) );
26}
27?>
28--EXPECT--
29When you're taught through feelings
30Destiny flying high above
31all I know is that you can realize it
32Destiny who cares
33as it turns around
34and I know that it descends down on me
35int(176)
36When you're taught through feelings
37Destiny flying high above
38all I know is that you can realize it
39Destiny who cares
40as it turns around
41and I know that it descends down on me
42int(176)
43When you're taught through feelings
44Destiny flying high above
45all I know is that you can realize it
46Destiny who cares
47as it turns around
48and I know that it descends down on me
49int(176)
50When you're taught through feelings
51Destiny flying high above
52all I know is that you can realize it
53Destiny who cares
54as it turns around
55and I know that it descends down on me
56int(176)
57When you're taught through feelings
58Destiny flying high above
59all I know is that you can realize it
60Destiny who cares
61as it turns around
62and I know that it descends down on me
63int(176)
64