cvs: php-src /ext/ctype ctype.c
| From: | Moriyoshi Koizumi | Date: | Fri, 03 Oct 2003 15:50:02 +0000 |
| Subject: | cvs: php-src /ext/ctype ctype.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-24026@lists.php.net to get a copy of this message | ||
moriyoshi Fri Oct 3 11:50:02 2003 EDT
Modified files:
/php-src/ext/ctype ctype.c
Log:
Bug #25745 (ctype functions don't deal with non-ascii characters properly)
Index: php-src/ext/ctype/ctype.c
diff -u php-src/ext/ctype/ctype.c:1.27 php-src/ext/ctype/ctype.c:1.28
--- php-src/ext/ctype/ctype.c:1.27 Tue Jun 10 16:03:26 2003
+++ php-src/ext/ctype/ctype.c Fri Oct 3 11:50:01 2003
@@ -105,7 +105,7 @@
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; \
} \