From: Anatol Belski Date: Fri, 19 Sep 2014 17:35:29 +0000 (+0200) Subject: updated the comment to charset_hint X-Git-Tag: POST_NATIVE_TLS_MERGE^2~181 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2be8fdcfd6b719cf21e4344c75b46fd5704727e4;p=php updated the comment to charset_hint --- diff --git a/ext/standard/html.c b/ext/standard/html.c index e918e9586e..dfe30d9b3e 100644 --- a/ext/standard/html.c +++ b/ext/standard/html.c @@ -392,7 +392,8 @@ static enum entity_charset determine_charset(char *charset_hint TSRMLS_DC) if (zenc != NULL) { charset_hint = (char *)zend_multibyte_get_encoding_name(zenc); if (charset_hint != NULL && (len=strlen(charset_hint)) != 0) { - if ((len == 4) /* sizeof (none|auto|pass) */ && + if ((len == 4) /* sizeof (auto|pass) */ && + /* XXX should the "wchar" be ignored as well?? */ (!memcmp("pass", charset_hint, 4) || !memcmp("auto", charset_hint, 4))) { charset_hint = NULL;