updated the comment to charset_hint

This commit is contained in:
Anatol Belski 2014-09-19 19:35:29 +02:00
parent d0cb715373
commit 2be8fdcfd6

View 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;