moriyoshi Fri Oct 3 11:53:47 2003 EDT
Modified files: (Branch: PHP_4_3)
/php-src/ext/ctype ctype.c
Log:
MFH(r-1.28): Fixed 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.23.4.1 php-src/ext/ctype/ctype.c:1.23.4.2
--- php-src/ext/ctype/ctype.c:1.23.4.1 Tue Dec 31 11:34:14 2002
+++ php-src/ext/ctype/ctype.c Fri Oct 3 11:53:47 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; \
} \
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php