]> granicus.if.org Git - php/commitdiff
MFH(r-1.28): Fixed bug #25745 (ctype functions don't deal with non-ascii characters...
authorMoriyoshi Koizumi <moriyoshi@php.net>
Fri, 3 Oct 2003 15:53:47 +0000 (15:53 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Fri, 3 Oct 2003 15:53:47 +0000 (15:53 +0000)
ext/ctype/ctype.c

index 5e60263a8bb2a28a9bd30b589a766b0d7028b9a4..f755d7e33fb3e065f811db50862acf629111ded2 100644 (file)
@@ -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; \
                } \