cvs: php-src /ext/ctype ctype.c

From: Date: Wed, 17 Aug 2005 14:16:06 +0000
Subject: cvs: php-src /ext/ctype ctype.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-33491@lists.php.net to get a copy of this message
dmitry Wed Aug 17 10:16:06 2005 EDT Modified files: /php-src/ext/ctype ctype.c Log: Unicode support http://cvs.php.net/diff.php/php-src/ext/ctype/ctype.c?r1=1.34&r2=1.35&ty=u Index: php-src/ext/ctype/ctype.c diff -u php-src/ext/ctype/ctype.c:1.34 php-src/ext/ctype/ctype.c:1.35 --- php-src/ext/ctype/ctype.c:1.34 Wed Aug 3 10:06:43 2005 +++ php-src/ext/ctype/ctype.c Wed Aug 17 10:16:05 2005 @@ -105,6 +105,8 @@ SEPARATE_ZVAL(&c); \ convert_to_string(c); \ case IS_STRING: \ + case IS_BINARY: \ +string:\ { \ char *p = Z_STRVAL_P(c), *e = Z_STRVAL_P(c) + Z_STRLEN_P(c); \ if (e == p) { \ @@ -115,6 +117,9 @@ } \ RETURN_TRUE; \ } \ + case IS_UNICODE: \ + convert_to_string(c); \ + goto string; \ default: \ break; \ } \

« previous php.cvs (#33491) next »