com php-src: updated the comment to charset_hint: ext/sta ndard/html.c
| From: | Anatol Belski | Date: | Fri, 19 Sep 2014 17:45:38 +0000 |
| Subject: | com php-src: updated the comment to charset_hint: ext/sta ndard/html.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-81782@lists.php.net to get a copy of this message | ||
Commit: 2be8fdcfd6b719cf21e4344c75b46fd5704727e4
Author: Anatol Belski <ab@php.net> Fri, 19 Sep 2014 19:35:29 +0200
Parents: d0cb715373c3fbe9dc095378ec5ed8c71f799f67
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2be8fdcfd6b719cf21e4344c75b46fd5704727e4
Log:
updated the comment to charset_hint
Changed paths:
M ext/standard/html.c
Diff:
diff --git a/ext/standard/html.c b/ext/standard/html.c
index e918e95..dfe30d9 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;