Skip to content

Commit 0e4c675

Browse files
committed
Use new param API in ctype
1 parent 994170e commit 0e4c675

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ext/ctype/ctype.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,9 @@ static PHP_MINFO_FUNCTION(ctype)
144144
*/
145145
#define CTYPE(iswhat) \
146146
zval *c, tmp; \
147-
if (zend_parse_parameters(ZEND_NUM_ARGS(), "z", &c) == FAILURE) \
148-
return; \
147+
ZEND_PARSE_PARAMETERS_START(1, 1); \
148+
Z_PARAM_ZVAL_DEREF(c) \
149+
ZEND_PARSE_PARAMETERS_END(); \
149150
if (Z_TYPE_P(c) == IS_LONG) { \
150151
if (Z_LVAL_P(c) <= 255 && Z_LVAL_P(c) >= 0) { \
151152
RETURN_BOOL(iswhat((int)Z_LVAL_P(c))); \

0 commit comments

Comments
 (0)