summaryrefslogtreecommitdiff
path: root/ext/ctype
diff options
context:
space:
mode:
authorMoriyoshi Koizumi <moriyoshi@php.net>2003-10-03 15:50:01 +0000
committerMoriyoshi Koizumi <moriyoshi@php.net>2003-10-03 15:50:01 +0000
commit0d2b8c68df7fdc8d6b722fb5d9e9ae6631e544b8 (patch)
treedda38b1aa13cf6c994f41f25c845aa0ae8ef096e /ext/ctype
parentafc48dc8f2f45b7b28b79db3094f685b51e00c58 (diff)
downloadphp-git-0d2b8c68df7fdc8d6b722fb5d9e9ae6631e544b8.tar.gz
Bug #25745 (ctype functions don't deal with non-ascii characters properly)
Diffstat (limited to 'ext/ctype')
-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; \
} \