mirror of
https://github.com/php/php-src.git
synced 2024-09-23 02:47:26 +00:00
Fixed encoding support
This commit is contained in:
parent
dd16f4f716
commit
7dbb8117e4
@ -383,7 +383,7 @@ static void _xml_xmlchar_zval(const XML_Char *s, int len, const XML_Char *encodi
|
||||
if (len == 0) {
|
||||
len = _xml_xmlcharlen(s);
|
||||
}
|
||||
ZVAL_STRINGL(ret, (char *)s, len);
|
||||
ZVAL_STR(ret, xml_utf8_decode(s, len, encoding));
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user