18f9ec423SDave Kelsey--TEST--
204145dc2SVeres LajosTest function readgzfile() 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(readgzfile( $filename, $var  ) );
268f9ec423SDave Kelsey}
278f9ec423SDave Kelsey?>
288f9ec423SDave Kelsey===DONE===
298f9ec423SDave Kelsey--EXPECT--
308f9ec423SDave KelseyWhen you're taught through feelings
318f9ec423SDave KelseyDestiny flying high above
328f9ec423SDave Kelseyall I know is that you can realize it
338f9ec423SDave KelseyDestiny who cares
348f9ec423SDave Kelseyas it turns around
358f9ec423SDave Kelseyand I know that it descends down on me
368f9ec423SDave Kelseyint(176)
378f9ec423SDave KelseyWhen you're taught through feelings
388f9ec423SDave KelseyDestiny flying high above
398f9ec423SDave Kelseyall I know is that you can realize it
408f9ec423SDave KelseyDestiny who cares
418f9ec423SDave Kelseyas it turns around
428f9ec423SDave Kelseyand I know that it descends down on me
438f9ec423SDave Kelseyint(176)
448f9ec423SDave KelseyWhen you're taught through feelings
458f9ec423SDave KelseyDestiny flying high above
468f9ec423SDave Kelseyall I know is that you can realize it
478f9ec423SDave KelseyDestiny who cares
488f9ec423SDave Kelseyas it turns around
498f9ec423SDave Kelseyand I know that it descends down on me
508f9ec423SDave Kelseyint(176)
518f9ec423SDave KelseyWhen you're taught through feelings
528f9ec423SDave KelseyDestiny flying high above
538f9ec423SDave Kelseyall I know is that you can realize it
548f9ec423SDave KelseyDestiny who cares
558f9ec423SDave Kelseyas it turns around
568f9ec423SDave Kelseyand I know that it descends down on me
578f9ec423SDave Kelseyint(176)
588f9ec423SDave KelseyWhen you're taught through feelings
598f9ec423SDave KelseyDestiny flying high above
608f9ec423SDave Kelseyall I know is that you can realize it
618f9ec423SDave KelseyDestiny who cares
628f9ec423SDave Kelseyas it turns around
638f9ec423SDave Kelseyand I know that it descends down on me
648f9ec423SDave Kelseyint(176)
651392102bSAndrea Faulds===DONE===
66