Lines Matching refs:stream_get_meta_data

2 Test stream_get_meta_data() function : error conditions
5 /* Prototype : proto array stream_get_meta_data(resource fp)
11 echo "*** Testing stream_get_meta_data() : error conditions ***\n";
14 echo "\n-- Testing stream_get_meta_data() function with Zero arguments --\n";
15 var_dump( stream_get_meta_data() );
17 //Test stream_get_meta_data with one more than the expected number of arguments
18 echo "\n-- Testing stream_get_meta_data() function with more than expected no. of arguments --\n";
22 var_dump( stream_get_meta_data($fp, $extra_arg) );
24 echo "\n-- Testing stream_get_meta_data() function with invalid stream resource --\n";
26 var_dump(stream_get_meta_data($fp));
28 echo "\n-- Testing stream_get_meta_data() function with closed stream resource --\n";
31 var_dump(stream_get_meta_data($fp));
36 *** Testing stream_get_meta_data() : error conditions ***
38 -- Testing stream_get_meta_data() function with Zero arguments --
40 Warning: stream_get_meta_data() expects exactly 1 parameter, 0 given in %s on line %i
43 -- Testing stream_get_meta_data() function with more than expected no. of arguments --
45 Warning: stream_get_meta_data() expects exactly 1 parameter, 2 given in %s on line %i
48 -- Testing stream_get_meta_data() function with invalid stream resource --
50 Warning: stream_get_meta_data() expects parameter 1 to be resource, null given in %s on line %i
53 -- Testing stream_get_meta_data() function with closed stream resource --
55 Warning: stream_get_meta_data(): supplied resource is not a valid stream resource in %s on line %i