Deleted Added
full compact
fstat_variation3.phpt (e815e613) fstat_variation3.phpt (04145dc2)
1--TEST--
1--TEST--
2Test function fstat() by substituting agument 1 with emptyUnsetUndefNull values.
2Test function fstat() by substituting argument 1 with emptyUnsetUndefNull values.
3--FILE--
4<?php
5$unset_var = 10;
6unset($unset_var);
7
8$variation_array = array(
9 'unset var' => @$unset_var,
10 'undefined var' => @$undefined_var,

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

17
18foreach ( $variation_array as $var ) {
19 var_dump(fstat( $var ) );
20}
21?>
22===DONE===
23--EXPECTF--
24
3--FILE--
4<?php
5$unset_var = 10;
6unset($unset_var);
7
8$variation_array = array(
9 'unset var' => @$unset_var,
10 'undefined var' => @$undefined_var,

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

17
18foreach ( $variation_array as $var ) {
19 var_dump(fstat( $var ) );
20}
21?>
22===DONE===
23--EXPECTF--
24
25Warning: fstat(): supplied argument is not a valid stream resource in %s on line %d
25Warning: fstat() expects parameter 1 to be resource, null given in %s on line %d
26bool(false)
27
26bool(false)
27
28Warning: fstat(): supplied argument is not a valid stream resource in %s on line %d
28Warning: fstat() expects parameter 1 to be resource, null given in %s on line %d
29bool(false)
30
29bool(false)
30
31Warning: fstat(): supplied argument is not a valid stream resource in %s on line %d
31Warning: fstat() expects parameter 1 to be resource, string given in %s on line %d
32bool(false)
33
32bool(false)
33
34Warning: fstat(): supplied argument is not a valid stream resource in %s on line %d
34Warning: fstat() expects parameter 1 to be resource, string given in %s on line %d
35bool(false)
36
35bool(false)
36
37Warning: fstat(): supplied argument is not a valid stream resource in %s on line %d
37Warning: fstat() expects parameter 1 to be resource, null given in %s on line %d
38bool(false)
39
38bool(false)
39
40Warning: fstat(): supplied argument is not a valid stream resource in %s on line %d
40Warning: fstat() expects parameter 1 to be resource, null given in %s on line %d
41bool(false)
42===DONE===
41bool(false)
42===DONE===