18f9ec423SDave Kelsey--TEST--
204145dc2SVeres LajosTest function gzfile() by substituting argument 2 with float values.
38f9ec423SDave Kelsey--SKIPIF--
48f9ec423SDave Kelsey<?php
58f9ec423SDave Kelseyif (!extension_loaded('zlib')) die ('skip zlib extension not available in this build');
61392102bSAndrea Fauldsif (PHP_INT_SIZE != 8) die('skip 64-bit only');
78f9ec423SDave Kelsey?>
88f9ec423SDave Kelsey--FILE--
98f9ec423SDave Kelsey<?php
108f9ec423SDave Kelsey
118f9ec423SDave Kelsey
128f9ec423SDave Kelsey$filename = dirname(__FILE__)."/004.txt.gz";
138f9ec423SDave Kelsey
148f9ec423SDave Kelsey
158f9ec423SDave Kelsey$variation = array(
168f9ec423SDave Kelsey  'float 10.5' => 10.5,
178f9ec423SDave Kelsey  'float -10.5' => -10.5,
188f9ec423SDave Kelsey  'float 12.3456789000e10' => 12.3456789000e10,
198f9ec423SDave Kelsey  'float -12.3456789000e10' => -12.3456789000e10,
208f9ec423SDave Kelsey  'float .5' => .5,
218f9ec423SDave Kelsey  );
228f9ec423SDave Kelsey
238f9ec423SDave Kelsey
248f9ec423SDave Kelseyforeach ( $variation as $var ) {
258f9ec423SDave Kelsey  var_dump(gzfile( $filename, $var  ) );
268f9ec423SDave Kelsey}
278f9ec423SDave Kelsey?>
288f9ec423SDave Kelsey===DONE===
298f9ec423SDave Kelsey--EXPECT--
308f9ec423SDave Kelseyarray(6) {
318f9ec423SDave Kelsey  [0]=>
328f9ec423SDave Kelsey  string(36) "When you're taught through feelings
338f9ec423SDave Kelsey"
348f9ec423SDave Kelsey  [1]=>
358f9ec423SDave Kelsey  string(26) "Destiny flying high above
368f9ec423SDave Kelsey"
378f9ec423SDave Kelsey  [2]=>
388f9ec423SDave Kelsey  string(38) "all I know is that you can realize it
398f9ec423SDave Kelsey"
408f9ec423SDave Kelsey  [3]=>
418f9ec423SDave Kelsey  string(18) "Destiny who cares
428f9ec423SDave Kelsey"
438f9ec423SDave Kelsey  [4]=>
448f9ec423SDave Kelsey  string(19) "as it turns around
458f9ec423SDave Kelsey"
468f9ec423SDave Kelsey  [5]=>
478f9ec423SDave Kelsey  string(39) "and I know that it descends down on me
488f9ec423SDave Kelsey"
498f9ec423SDave Kelsey}
508f9ec423SDave Kelseyarray(6) {
518f9ec423SDave Kelsey  [0]=>
528f9ec423SDave Kelsey  string(36) "When you're taught through feelings
538f9ec423SDave Kelsey"
548f9ec423SDave Kelsey  [1]=>
558f9ec423SDave Kelsey  string(26) "Destiny flying high above
568f9ec423SDave Kelsey"
578f9ec423SDave Kelsey  [2]=>
588f9ec423SDave Kelsey  string(38) "all I know is that you can realize it
598f9ec423SDave Kelsey"
608f9ec423SDave Kelsey  [3]=>
618f9ec423SDave Kelsey  string(18) "Destiny who cares
628f9ec423SDave Kelsey"
638f9ec423SDave Kelsey  [4]=>
648f9ec423SDave Kelsey  string(19) "as it turns around
658f9ec423SDave Kelsey"
668f9ec423SDave Kelsey  [5]=>
678f9ec423SDave Kelsey  string(39) "and I know that it descends down on me
688f9ec423SDave Kelsey"
698f9ec423SDave Kelsey}
708f9ec423SDave Kelseyarray(6) {
718f9ec423SDave Kelsey  [0]=>
728f9ec423SDave Kelsey  string(36) "When you're taught through feelings
738f9ec423SDave Kelsey"
748f9ec423SDave Kelsey  [1]=>
758f9ec423SDave Kelsey  string(26) "Destiny flying high above
768f9ec423SDave Kelsey"
778f9ec423SDave Kelsey  [2]=>
788f9ec423SDave Kelsey  string(38) "all I know is that you can realize it
798f9ec423SDave Kelsey"
808f9ec423SDave Kelsey  [3]=>
818f9ec423SDave Kelsey  string(18) "Destiny who cares
828f9ec423SDave Kelsey"
838f9ec423SDave Kelsey  [4]=>
848f9ec423SDave Kelsey  string(19) "as it turns around
858f9ec423SDave Kelsey"
868f9ec423SDave Kelsey  [5]=>
878f9ec423SDave Kelsey  string(39) "and I know that it descends down on me
888f9ec423SDave Kelsey"
898f9ec423SDave Kelsey}
908f9ec423SDave Kelseyarray(6) {
918f9ec423SDave Kelsey  [0]=>
928f9ec423SDave Kelsey  string(36) "When you're taught through feelings
938f9ec423SDave Kelsey"
948f9ec423SDave Kelsey  [1]=>
958f9ec423SDave Kelsey  string(26) "Destiny flying high above
968f9ec423SDave Kelsey"
978f9ec423SDave Kelsey  [2]=>
988f9ec423SDave Kelsey  string(38) "all I know is that you can realize it
998f9ec423SDave Kelsey"
1008f9ec423SDave Kelsey  [3]=>
1018f9ec423SDave Kelsey  string(18) "Destiny who cares
1028f9ec423SDave Kelsey"
1038f9ec423SDave Kelsey  [4]=>
1048f9ec423SDave Kelsey  string(19) "as it turns around
1058f9ec423SDave Kelsey"
1068f9ec423SDave Kelsey  [5]=>
1078f9ec423SDave Kelsey  string(39) "and I know that it descends down on me
1088f9ec423SDave Kelsey"
1098f9ec423SDave Kelsey}
1108f9ec423SDave Kelseyarray(6) {
1118f9ec423SDave Kelsey  [0]=>
1128f9ec423SDave Kelsey  string(36) "When you're taught through feelings
1138f9ec423SDave Kelsey"
1148f9ec423SDave Kelsey  [1]=>
1158f9ec423SDave Kelsey  string(26) "Destiny flying high above
1168f9ec423SDave Kelsey"
1178f9ec423SDave Kelsey  [2]=>
1188f9ec423SDave Kelsey  string(38) "all I know is that you can realize it
1198f9ec423SDave Kelsey"
1208f9ec423SDave Kelsey  [3]=>
1218f9ec423SDave Kelsey  string(18) "Destiny who cares
1228f9ec423SDave Kelsey"
1238f9ec423SDave Kelsey  [4]=>
1248f9ec423SDave Kelsey  string(19) "as it turns around
1258f9ec423SDave Kelsey"
1268f9ec423SDave Kelsey  [5]=>
1278f9ec423SDave Kelsey  string(39) "and I know that it descends down on me
1288f9ec423SDave Kelsey"
1298f9ec423SDave Kelsey}
1301392102bSAndrea Faulds===DONE===
131