Deleted Added
full compact
fstat_variation1.phpt (e815e613) fstat_variation1.phpt (04145dc2)
1--TEST--
1--TEST--
2Test function fstat() by substituting agument 1 with array values.
2Test function fstat() by substituting argument 1 with array values.
3--FILE--
4<?php
5$index_array = array(1, 2, 3);
6$assoc_array = array(1 => 'one', 2 => 'two');
7
8$variation_array = array(
9 'empty array' => array(),
10 'int indexed array' => $index_array,

--- 4 unchanged lines hidden (view full) ---

15
16foreach ( $variation_array as $var ) {
17 var_dump(fstat( $var ) );
18}
19?>
20===DONE===
21--EXPECTF--
22
3--FILE--
4<?php
5$index_array = array(1, 2, 3);
6$assoc_array = array(1 => 'one', 2 => 'two');
7
8$variation_array = array(
9 'empty array' => array(),
10 'int indexed array' => $index_array,

--- 4 unchanged lines hidden (view full) ---

15
16foreach ( $variation_array as $var ) {
17 var_dump(fstat( $var ) );
18}
19?>
20===DONE===
21--EXPECTF--
22
23Warning: fstat(): supplied argument is not a valid stream resource in %s on line %d
23Warning: fstat() expects parameter 1 to be resource, array 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, array 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, array given in %s on line %d
30bool(false)
31
30bool(false)
31
32Warning: fstat(): supplied argument is not a valid stream resource in %s on line %d
32Warning: fstat() expects parameter 1 to be resource, array given in %s on line %d
33bool(false)
34===DONE===
33bool(false)
34===DONE===