Deleted Added
full compact
fstat_variation5.phpt (e815e613) fstat_variation5.phpt (04145dc2)
1--TEST--
1--TEST--
2Test function fstat() by substituting agument 1 with int values.
2Test function fstat() by substituting argument 1 with int values.
3--FILE--
4<?php
5$variation_array = array (
6 'int 0' => 0,
7 'int 1' => 1,
8 'int 12345' => 12345,
9 'int -12345' => -2345,
10 );
11
12
13foreach ( $variation_array as $var ) {
14 var_dump(fstat( $var ) );
15}
16?>
17===DONE===
18--EXPECTF--
19
3--FILE--
4<?php
5$variation_array = array (
6 'int 0' => 0,
7 'int 1' => 1,
8 'int 12345' => 12345,
9 'int -12345' => -2345,
10 );
11
12
13foreach ( $variation_array as $var ) {
14 var_dump(fstat( $var ) );
15}
16?>
17===DONE===
18--EXPECTF--
19
20Warning: fstat(): supplied argument is not a valid stream resource in %s on line %d
20Warning: fstat() expects parameter 1 to be resource, integer given in %s on line %d
21bool(false)
22
21bool(false)
22
23Warning: fstat(): supplied argument is not a valid stream resource in %s on line %d
23Warning: fstat() expects parameter 1 to be resource, integer given in %s on line %d
24bool(false)
25
24bool(false)
25
26Warning: fstat(): supplied argument is not a valid stream resource in %s on line %d
26Warning: fstat() expects parameter 1 to be resource, integer given in %s on line %d
27bool(false)
28
27bool(false)
28
29Warning: fstat(): supplied argument is not a valid stream resource in %s on line %d
29Warning: fstat() expects parameter 1 to be resource, integer given in %s on line %d
30bool(false)
31===DONE===
30bool(false)
31===DONE===