cvs: php-src(PHP_4_3) /ext/ctype ctype.c

From: Date: Fri, 03 Oct 2003 15:53:47 +0000
Subject: cvs: php-src(PHP_4_3) /ext/ctype ctype.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-24027@lists.php.net to get a copy of this message
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; \ } \

« previous php.cvs (#24027) next »