diff options
author | Gabriel Caruso <carusogabriel34@gmail.com> | 2018-07-22 15:54:00 -0300 |
---|---|---|
committer | Gabriel Caruso <carusogabriel34@gmail.com> | 2018-07-22 15:54:00 -0300 |
commit | 8ca1f47a7a25f61fcc63313a771e6922e3258046 (patch) | |
tree | b5fc76c7adf6e0cf64d26416161081b0349afd4e /ext/gd | |
parent | 26cd84d19f164f592f24593f4d1d1f7bd10696a6 (diff) | |
download | php-git-8ca1f47a7a25f61fcc63313a771e6922e3258046.tar.gz |
Use variables that already received ZEND_NUM_ARGS()
Diffstat (limited to 'ext/gd')
-rw-r--r-- | ext/gd/gd_ctx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/gd/gd_ctx.c b/ext/gd/gd_ctx.c index 9c3d73335c..f00ab4ccb0 100644 --- a/ext/gd/gd_ctx.c +++ b/ext/gd/gd_ctx.c @@ -101,12 +101,12 @@ static void _php_image_output_ctx(INTERNAL_FUNCTION_PARAMETERS, int image_type, */ switch (image_type) { case PHP_GDIMG_TYPE_XBM: - if (zend_parse_parameters(ZEND_NUM_ARGS(), "rp!|ll", &imgind, &file, &file_len, &quality, &basefilter) == FAILURE) { + if (zend_parse_parameters(argc, "rp!|ll", &imgind, &file, &file_len, &quality, &basefilter) == FAILURE) { return; } break; case PHP_GDIMG_TYPE_BMP: - if (zend_parse_parameters(ZEND_NUM_ARGS(), "r|z!b", &imgind, &to_zval, &compressed) == FAILURE) { + if (zend_parse_parameters(argc, "r|z!b", &imgind, &to_zval, &compressed) == FAILURE) { return; } break; @@ -117,7 +117,7 @@ static void _php_image_output_ctx(INTERNAL_FUNCTION_PARAMETERS, int image_type, * PHP_GDIMG_TYPE_WBM * PHP_GDIMG_TYPE_WEBP * */ - if (zend_parse_parameters(ZEND_NUM_ARGS(), "r|z!ll", &imgind, &to_zval, &quality, &basefilter) == FAILURE) { + if (zend_parse_parameters(argc, "r|z!ll", &imgind, &to_zval, &quality, &basefilter) == FAILURE) { return; } } |