mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
updated the comment to charset_hint
This commit is contained in:
parent
d0cb715373
commit
2be8fdcfd6
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue