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