From 0e4c675736ac7d07e835d8e6e9a5d8f2523e9852 Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Wed, 28 Dec 2016 09:11:53 -0800 Subject: [PATCH] Use new param API in ctype --- ext/ctype/ctype.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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))); \ -- 2.50.1