From 0df66e7eaaf0057dd7082441fba9682fee0de537 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 17 Aug 2005 14:16:05 +0000 Subject: [PATCH] Unicode support --- ext/ctype/ctype.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ext/ctype/ctype.c b/ext/ctype/ctype.c index eae5bf68ee..9a5eb32330 100644 --- a/ext/ctype/ctype.c +++ b/ext/ctype/ctype.c @@ -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; \ } \ -- 2.50.1