From 5038d4736c94cb0b34f500de8f7e50eb42180caf Mon Sep 17 00:00:00 2001 From: arshidkv12 Date: Wed, 4 Feb 2026 12:36:59 +0530 Subject: [PATCH 1/3] Replace zend_parse_parameters() with ZEND_PARSE_PARAMETERS macros --- ext/exif/exif.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/exif/exif.c b/ext/exif/exif.c index 17dadc7539baf..05fd9ec3c8fdc 100644 --- a/ext/exif/exif.c +++ b/ext/exif/exif.c @@ -2785,9 +2785,9 @@ PHP_FUNCTION(exif_tagname) zend_long tag; char *szTemp; - if (zend_parse_parameters(ZEND_NUM_ARGS(), "l", &tag) == FAILURE) { - RETURN_THROWS(); - } + ZEND_PARSE_PARAMETERS_START(1, 1) + Z_PARAM_LONG(tag) + ZEND_PARSE_PARAMETERS_END(); szTemp = exif_get_tagname(tag, tag_table_IFD); if (tag < 0 || !szTemp) { From 085c5099e8fc135b363b55c239621cb725acb514 Mon Sep 17 00:00:00 2001 From: arshidkv12 Date: Wed, 4 Feb 2026 14:38:05 +0530 Subject: [PATCH 2/3] ext/exif: Replace zend_parse_parameters() with ZEND_PARSE_PARAMETERS macros --- ext/exif/exif.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/exif/exif.c b/ext/exif/exif.c index 05fd9ec3c8fdc..be39cc00ef5c8 100644 --- a/ext/exif/exif.c +++ b/ext/exif/exif.c @@ -4978,9 +4978,9 @@ PHP_FUNCTION(exif_imagetype) php_stream * stream; int itype = 0; - if (zend_parse_parameters(ZEND_NUM_ARGS(), "p", &imagefile, &imagefile_len) == FAILURE) { - RETURN_THROWS(); - } + ZEND_PARSE_PARAMETERS_START(1, 1) + Z_PARAM_STRING(imagefile, imagefile_len) + ZEND_PARSE_PARAMETERS_END(); stream = php_stream_open_wrapper(imagefile, "rb", IGNORE_PATH|REPORT_ERRORS, NULL); From 348a7198bc51eb2a77c8abe33c470dc8229b3ba6 Mon Sep 17 00:00:00 2001 From: arshidkv12 Date: Wed, 4 Feb 2026 14:41:05 +0530 Subject: [PATCH 3/3] ext/exif: Replace zend_parse_parameters() with ZEND_PARSE_PARAMETERS macros --- ext/exif/exif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/exif/exif.c b/ext/exif/exif.c index be39cc00ef5c8..1deb7832202f1 100644 --- a/ext/exif/exif.c +++ b/ext/exif/exif.c @@ -4979,7 +4979,7 @@ PHP_FUNCTION(exif_imagetype) int itype = 0; ZEND_PARSE_PARAMETERS_START(1, 1) - Z_PARAM_STRING(imagefile, imagefile_len) + Z_PARAM_PATH(imagefile, imagefile_len) ZEND_PARSE_PARAMETERS_END(); stream = php_stream_open_wrapper(imagefile, "rb", IGNORE_PATH|REPORT_ERRORS, NULL);