Lines Matching refs:finfo_buffer
2 Test finfo_buffer() function : error conditions
7 /* Prototype : string finfo_buffer(resource finfo, char *string [, int options [, resource context…
15 echo "*** Testing finfo_buffer() : error conditions ***\n";
19 //Test finfo_buffer with one more than the expected number of arguments
20 echo "\n-- Testing finfo_buffer() function with more than expected no. of arguments --\n";
24 var_dump( finfo_buffer($finfo, "foobar", FILEINFO_MIME, $context, $extra_arg) );
26 // Testing finfo_buffer with one less than the expected number of arguments
27 echo "\n-- Testing finfo_buffer() function with less than expected no. of arguments --\n";
29 var_dump( finfo_buffer($finfo) );
34 *** Testing finfo_buffer() : error conditions ***
36 -- Testing finfo_buffer() function with more than expected no. of arguments --
38 Warning: finfo_buffer() expects at most 4 parameters, 5 given in %s on line %d
41 -- Testing finfo_buffer() function with less than expected no. of arguments --
43 Warning: finfo_buffer() expects at least 2 parameters, 1 given in %s on line %d