From: Sara Golemon Date: Wed, 28 Dec 2016 17:11:53 +0000 (-0800) Subject: Use new param API in ctype X-Git-Tag: php-7.2.0alpha1~736 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0e4c675736ac7d07e835d8e6e9a5d8f2523e9852;p=php Use new param API in ctype --- diff --git a/ext/ctype/ctype.c b/ext/ctype/ctype.c index f439a59afd..b449f0b79e 100644 --- a/ext/ctype/ctype.c +++ b/ext/ctype/ctype.c @@ -144,8 +144,9 @@ static PHP_MINFO_FUNCTION(ctype) */ #define CTYPE(iswhat) \ zval *c, tmp; \ - if (zend_parse_parameters(ZEND_NUM_ARGS(), "z", &c) == FAILURE) \ - return; \ + ZEND_PARSE_PARAMETERS_START(1, 1); \ + Z_PARAM_ZVAL_DEREF(c) \ + ZEND_PARSE_PARAMETERS_END(); \ if (Z_TYPE_P(c) == IS_LONG) { \ if (Z_LVAL_P(c) <= 255 && Z_LVAL_P(c) >= 0) { \ RETURN_BOOL(iswhat((int)Z_LVAL_P(c))); \