Skip to content

Commit 085c509

Browse files
committed
ext/exif: Replace zend_parse_parameters() with ZEND_PARSE_PARAMETERS macros
1 parent 5038d47 commit 085c509

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
@@ -4978,9 +4978,9 @@ PHP_FUNCTION(exif_imagetype)
49784978
php_stream * stream;
49794979
int itype = 0;
49804980

4981-
if (zend_parse_parameters(ZEND_NUM_ARGS(), "p", &imagefile, &imagefile_len) == FAILURE) {
4982-
RETURN_THROWS();
4983-
}
4981+
ZEND_PARSE_PARAMETERS_START(1, 1)
4982+
Z_PARAM_STRING(imagefile, imagefile_len)
4983+
ZEND_PARSE_PARAMETERS_END();
49844984

49854985
stream = php_stream_open_wrapper(imagefile, "rb", IGNORE_PATH|REPORT_ERRORS, NULL);
49864986

0 commit comments

Comments
 (0)