diff options
Diffstat (limited to 'ext/gd/gd.c')
-rw-r--r-- | ext/gd/gd.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c index 6868c68457..3b894d3f79 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -1440,8 +1440,7 @@ PHP_MINFO_FUNCTION(gd) */ PHP_FUNCTION(gd_info) { - if (ZEND_NUM_ARGS() != 0) { - ZEND_WRONG_PARAM_COUNT(); + if (zend_parse_parameters_none() == FAILURE) { RETURN_FALSE; } @@ -2383,8 +2382,8 @@ PHP_FUNCTION(imagetypes) ret |= 16; #endif - if (ZEND_NUM_ARGS() != 0) { - WRONG_PARAM_COUNT; + if (zend_parse_parameters_none() == FAILURE) { + return; } RETURN_LONG(ret); |