mirror of
https://github.com/php/php-src.git
synced 2024-10-16 22:12:33 +00:00
35 lines
843 B
Plaintext
35 lines
843 B
Plaintext
|
--TEST--
|
||
|
Test function fstat() by substituting agument 1 with float values.
|
||
|
--FILE--
|
||
|
<?php
|
||
|
$variation_array = array(
|
||
|
'float 10.5' => 10.5,
|
||
|
'float -10.5' => -10.5,
|
||
|
'float 12.3456789000e10' => 12.3456789000e10,
|
||
|
'float -12.3456789000e10' => -12.3456789000e10,
|
||
|
'float .5' => .5,
|
||
|
);
|
||
|
|
||
|
|
||
|
foreach ( $variation_array as $var ) {
|
||
|
var_dump(fstat( $var ) );
|
||
|
}
|
||
|
?>
|
||
|
===DONE===
|
||
|
--EXPECTF--
|
||
|
|
||
|
Warning: fstat() expects parameter 1 to be resource, double given in %s on line %d
|
||
|
NULL
|
||
|
|
||
|
Warning: fstat() expects parameter 1 to be resource, double given in %s on line %d
|
||
|
NULL
|
||
|
|
||
|
Warning: fstat() expects parameter 1 to be resource, double given in %s on line %d
|
||
|
NULL
|
||
|
|
||
|
Warning: fstat() expects parameter 1 to be resource, double given in %s on line %d
|
||
|
NULL
|
||
|
|
||
|
Warning: fstat() expects parameter 1 to be resource, double given in %s on line %d
|
||
|
NULL
|
||
|
===DONE===
|