Lines Matching refs:finfo_open
2 Test finfo_open() function : error functionality
7 /* Prototype : resource finfo_open([int options [, string arg]])
15 echo "*** Testing finfo_open() : error functionality ***\n";
17 var_dump( finfo_open( FILEINFO_MIME, 'foobarfile' ) );
18 var_dump( finfo_open( array(), $magicFile ) );
19 var_dump( finfo_open( FILEINFO_MIME, $magicFile, 'extraArg' ) );
20 var_dump( finfo_open( PHP_INT_MAX - 1, $magicFile ) );
21 var_dump( finfo_open( 'foobar' ) );
32 *** Testing finfo_open() : error functionality ***
34 Warning: finfo_open(%sfoobarfile): failed to open stream: No such file or directory in %sfinfo_open…
36 Warning: finfo_open(%sfoobarfile): failed to open stream: No such file or directory in %sfinfo_open…
38 Warning: finfo_open(): Failed to load magic database at '%sfoobarfile'. in %sfinfo_open_error.php o…
41 Warning: finfo_open() expects parameter 1 to be integer, array given in %sfinfo_open_error.php on l…
44 Warning: finfo_open() expects at most 2 parameters, 3 given in %sfinfo_open_error.php on line 14
47 Notice: finfo_open(): Warning: using regular magic file `%smagic' in %sfinfo_open_error.php on line…
50 Warning: finfo_open() expects parameter 1 to be integer, string given in %sfinfo_open_error.php on …