summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/ctype/ctype.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/ctype/ctype.c b/ext/ctype/ctype.c
index 764ac5af90..7e62e9bc79 100644
--- a/ext/ctype/ctype.c
+++ b/ext/ctype/ctype.c
@@ -105,7 +105,7 @@ PHP_MINFO_FUNCTION(ctype)
p=Z_STRVAL_P(c); \
len = Z_STRLEN_P(c); \
for(n=0;n<len;n++) { \
- if(!iswhat(*p++)) RETURN_FALSE; \
+ if(!iswhat((int)*(unsigned char *)(p++))) RETURN_FALSE; \
} \
RETURN_TRUE; \
} \