mirror of
https://github.com/php/php-src.git
synced 2025-01-19 18:24:15 +08:00
Fixed #2952.
This commit is contained in:
parent
4b6a03236b
commit
2b2e6ff6cb
@ -642,7 +642,7 @@ void _xml_startElementHandler(void *userData, const char *name,
|
||||
char *decoded_value;
|
||||
int decoded_len;
|
||||
if (parser->case_folding) {
|
||||
key = php_strtoupper(estrdup(key));
|
||||
key = php_strtoupper(estrdup(key), strlen(key));
|
||||
}
|
||||
decoded_value = xml_utf8_decode(value, strlen(value),
|
||||
&decoded_len,
|
||||
@ -687,7 +687,7 @@ void _xml_startElementHandler(void *userData, const char *name,
|
||||
char *decoded_value;
|
||||
int decoded_len;
|
||||
if (parser->case_folding) {
|
||||
key = php_strtoupper(estrdup(key));
|
||||
key = php_strtoupper(estrdup(key), strlen(key));
|
||||
}
|
||||
decoded_value = xml_utf8_decode(value, strlen(value),
|
||||
&decoded_len,
|
||||
@ -728,7 +728,7 @@ void _xml_endElementHandler(void *userData, const char *name)
|
||||
zval *retval, *args[2];
|
||||
|
||||
if (parser->case_folding) {
|
||||
name = php_strtoupper(estrdup(name));
|
||||
name = php_strtoupper(estrdup(name), strlen(name));
|
||||
}
|
||||
|
||||
if (parser->endElementHandler) {
|
||||
|
Loading…
Reference in New Issue
Block a user