2
Test exif_tagname() function : error conditions
4
<?php if (!extension_loaded('exif')) print 'skip exif extension not available';?>
8
/* Prototype :string exif_tagname ( string $index )
9
* Description: Get the header name for an index
10
* Source code: ext/exif/exif.c
13
echo "*** Testing exif_tagname() : error conditions ***\n";
15
echo "\n-- Testing exif_tagname() function with no arguments --\n";
16
var_dump( exif_tagname() );
18
echo "\n-- Testing exif_tagname() function with more than expected no. of arguments --\n";
20
var_dump( exif_tagname(0x10E, $extra_arg) );
25
*** Testing exif_tagname() : error conditions ***
27
-- Testing exif_tagname() function with no arguments --
29
Warning: exif_tagname() expects exactly 1 parameter, 0 given in %s on line %d
32
-- Testing exif_tagname() function with more than expected no. of arguments --
34
Warning: exif_tagname() expects exactly 1 parameter, 2 given in %s on line %d