]> granicus.if.org Git - php/commitdiff
updated the comment to charset_hint
authorAnatol Belski <ab@php.net>
Fri, 19 Sep 2014 17:35:29 +0000 (19:35 +0200)
committerAnatol Belski <ab@php.net>
Fri, 19 Sep 2014 17:45:38 +0000 (19:45 +0200)
ext/standard/html.c

index e918e9586e619c8fb819c75223e139020d409993..dfe30d9b3e475dacddde76379e3830b50ab24d61 100644 (file)
@@ -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;