Lines Matching refs:exif_imagetype
2 Test exif_imagetype() function : error conditions
8 /* Prototype : int exif_imagetype ( string $filename )
13 echo "*** Testing exif_imagetype() : error conditions ***\n";
15 echo "\n-- Testing exif_imagetype() function with no arguments --\n";
16 var_dump( exif_imagetype() );
18 echo "\n-- Testing exif_imagetype() function with more than expected no. of arguments --\n";
20 var_dump( exif_imagetype(dirname(__FILE__).'/test2.jpg', $extra_arg) );
22 echo "\n-- Testing exif_imagetype() function with an unknown file --\n";
23 var_dump( exif_imagetype(dirname(__FILE__).'/foo.jpg') );
29 *** Testing exif_imagetype() : error conditions ***
31 -- Testing exif_imagetype() function with no arguments --
33 Warning: exif_imagetype() expects exactly 1 parameter, 0 given in %s on line %d
36 -- Testing exif_imagetype() function with more than expected no. of arguments --
38 Warning: exif_imagetype() expects exactly 1 parameter, 2 given in %s on line %d
41 -- Testing exif_imagetype() function with an unknown file --
43 Warning: exif_imagetype(%s/foo.jpg): failed to open stream: No such file or directory in %s on line…