]> granicus.if.org Git - php/commitdiff
Unicode support
authorDmitry Stogov <dmitry@php.net>
Wed, 17 Aug 2005 14:16:05 +0000 (14:16 +0000)
committerDmitry Stogov <dmitry@php.net>
Wed, 17 Aug 2005 14:16:05 +0000 (14:16 +0000)
ext/ctype/ctype.c

index eae5bf68ee91f2023ca66782987a72b173b7ae96..9a5eb32330177cf9f3ebab25548977f12a774690 100644 (file)
@@ -105,6 +105,8 @@ PHP_MINFO_FUNCTION(ctype)
                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 @@ PHP_MINFO_FUNCTION(ctype)
                        } \
                        RETURN_TRUE; \
                } \
+       case IS_UNICODE: \
+               convert_to_string(c); \
+               goto string; \
        default: \
                break; \
        } \