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'); 6?> 7--FILE-- 8<?php 9 10 11$filename = dirname(__FILE__)."/004.txt.gz"; 12 13 14$variation = array( 15 'float 10.5' => 10.5, 16 'float -10.5' => -10.5, 17 'float 12.3456789000e10' => 12.3456789000e10, 18 'float -12.3456789000e10' => -12.3456789000e10, 19 'float .5' => .5, 20 ); 21 22 23foreach ( $variation as $var ) { 24 var_dump(gzfile( $filename, $var ) ); 25} 26?> 27===DONE=== 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===DONE===