1--TEST-- 2Test function gzfile() by substituting argument 1 with float values. 3--EXTENSIONS-- 4zlib 5--FILE-- 6<?php 7 8 9$use_include_path = false; 10 11 12$variation = array( 13 'float 10.5' => 10.5, 14 'float -10.5' => -10.5, 15 'float 12.3456789000e10' => 12.3456789000e10, 16 'float -12.3456789000e10' => -12.3456789000e10, 17 'float .5' => .5, 18 ); 19 20 21foreach ( $variation as $var ) { 22 var_dump(gzfile( $var , $use_include_path ) ); 23} 24?> 25--EXPECTF-- 26Warning: gzfile(10.5): Failed to open stream: No such file or directory in %s on line %d 27bool(false) 28 29Warning: gzfile(-10.5): Failed to open stream: No such file or directory in %s on line %d 30bool(false) 31 32Warning: gzfile(123456789000): Failed to open stream: No such file or directory in %s on line %d 33bool(false) 34 35Warning: gzfile(-123456789000): Failed to open stream: No such file or directory in %s on line %d 36bool(false) 37 38Warning: gzfile(0.5): Failed to open stream: No such file or directory in %s on line %d 39bool(false) 40