Skip to content

Commit 5038d47

Browse files
committed
Replace zend_parse_parameters() with ZEND_PARSE_PARAMETERS macros
1 parent 4188c3e commit 5038d47

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ext/exif/exif.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2785,9 +2785,9 @@ PHP_FUNCTION(exif_tagname)
27852785
zend_long tag;
27862786
char *szTemp;
27872787

2788-
if (zend_parse_parameters(ZEND_NUM_ARGS(), "l", &tag) == FAILURE) {
2789-
RETURN_THROWS();
2790-
}
2788+
ZEND_PARSE_PARAMETERS_START(1, 1)
2789+
Z_PARAM_LONG(tag)
2790+
ZEND_PARSE_PARAMETERS_END();
27912791

27922792
szTemp = exif_get_tagname(tag, tag_table_IFD);
27932793
if (tag < 0 || !szTemp) {

0 commit comments

Comments
 (0)