summaryrefslogtreecommitdiff
path: root/ext/ctype
diff options
context:
space:
mode:
authorSara Golemon <pollita@php.net>2016-12-28 09:11:53 -0800
committerSara Golemon <pollita@php.net>2016-12-28 09:11:53 -0800
commit0e4c675736ac7d07e835d8e6e9a5d8f2523e9852 (patch)
treec44384c130b51c36baf812c664c17741ea20ee51 /ext/ctype
parent994170ea805627796df2e09588f2991017573497 (diff)
downloadphp-git-0e4c675736ac7d07e835d8e6e9a5d8f2523e9852.tar.gz
Use new param API in ctype
Diffstat (limited to 'ext/ctype')
-rw-r--r--ext/ctype/ctype.c5
1 files 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))); \