mirror of
https://github.com/php/php-src.git
synced 2024-10-16 05:52:36 +00:00
31 lines
705 B
Plaintext
31 lines
705 B
Plaintext
|
--TEST--
|
||
|
Test function fstat() by substituting agument 1 with boolean values.
|
||
|
--FILE--
|
||
|
<?php
|
||
|
$variation_array = array(
|
||
|
'lowercase true' => true,
|
||
|
'lowercase false' =>false,
|
||
|
'uppercase TRUE' =>TRUE,
|
||
|
'uppercase FALSE' =>FALSE,
|
||
|
);
|
||
|
|
||
|
|
||
|
foreach ( $variation_array as $var ) {
|
||
|
var_dump(fstat( $var ) );
|
||
|
}
|
||
|
?>
|
||
|
===DONE===
|
||
|
--EXPECTF--
|
||
|
|
||
|
Warning: fstat() expects parameter 1 to be resource, boolean given in %s on line %d
|
||
|
NULL
|
||
|
|
||
|
Warning: fstat() expects parameter 1 to be resource, boolean given in %s on line %d
|
||
|
NULL
|
||
|
|
||
|
Warning: fstat() expects parameter 1 to be resource, boolean given in %s on line %d
|
||
|
NULL
|
||
|
|
||
|
Warning: fstat() expects parameter 1 to be resource, boolean given in %s on line %d
|
||
|
NULL
|
||
|
===DONE===
|