1--TEST--
2Test function gzfile() by substituting argument 1 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$use_include_path = false;
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( $var ,  $use_include_path ) );
25}
26?>
27--EXPECTF--
28Warning: gzfile(10.5): Failed to open stream: No such file or directory in %s on line %d
29bool(false)
30
31Warning: gzfile(-10.5): Failed to open stream: No such file or directory in %s on line %d
32bool(false)
33
34Warning: gzfile(123456789000): Failed to open stream: No such file or directory in %s on line %d
35bool(false)
36
37Warning: gzfile(-123456789000): Failed to open stream: No such file or directory in %s on line %d
38bool(false)
39
40Warning: gzfile(0.5): Failed to open stream: No such file or directory in %s on line %d
41bool(false)
42