18f9ec423SDave Kelsey--TEST--
204145dc2SVeres LajosTest function gzfile() by substituting argument 1 with float values.
38f9ec423SDave Kelsey--SKIPIF--
48f9ec423SDave Kelsey<?php
513926430STim Siebelsif (!extension_loaded('zlib')) die ('skip zlib extension not available in this build');
68f9ec423SDave Kelsey?>
78f9ec423SDave Kelsey--FILE--
88f9ec423SDave Kelsey<?php
98f9ec423SDave Kelsey
108f9ec423SDave Kelsey
118f9ec423SDave Kelsey$use_include_path = false;
128f9ec423SDave Kelsey
138f9ec423SDave Kelsey
148f9ec423SDave Kelsey$variation = array(
158f9ec423SDave Kelsey  'float 10.5' => 10.5,
168f9ec423SDave Kelsey  'float -10.5' => -10.5,
178f9ec423SDave Kelsey  'float 12.3456789000e10' => 12.3456789000e10,
188f9ec423SDave Kelsey  'float -12.3456789000e10' => -12.3456789000e10,
198f9ec423SDave Kelsey  'float .5' => .5,
208f9ec423SDave Kelsey  );
218f9ec423SDave Kelsey
228f9ec423SDave Kelsey
238f9ec423SDave Kelseyforeach ( $variation as $var ) {
248f9ec423SDave Kelsey  var_dump(gzfile( $var ,  $use_include_path ) );
258f9ec423SDave Kelsey}
268f9ec423SDave Kelsey?>
278f9ec423SDave Kelsey===DONE===
288f9ec423SDave Kelsey--EXPECTF--
298f9ec423SDave KelseyWarning: gzfile(10.5): failed to open stream: No such file or directory in %s on line %d
308f9ec423SDave Kelseybool(false)
318f9ec423SDave Kelsey
328f9ec423SDave KelseyWarning: gzfile(-10.5): failed to open stream: No such file or directory in %s on line %d
338f9ec423SDave Kelseybool(false)
348f9ec423SDave Kelsey
358f9ec423SDave KelseyWarning: gzfile(123456789000): failed to open stream: No such file or directory in %s on line %d
368f9ec423SDave Kelseybool(false)
378f9ec423SDave Kelsey
388f9ec423SDave KelseyWarning: gzfile(-123456789000): failed to open stream: No such file or directory in %s on line %d
398f9ec423SDave Kelseybool(false)
408f9ec423SDave Kelsey
418f9ec423SDave KelseyWarning: gzfile(0.5): failed to open stream: No such file or directory in %s on line %d
428f9ec423SDave Kelseybool(false)
438f9ec423SDave Kelsey===DONE===
44