mirror of
https://github.com/php/php-src.git
synced 2024-09-25 11:57:26 +00:00
fix bug #45996 (libxml2 2.7 causes breakage with character data in xml_parse())
This commit is contained in:
parent
e35b825990
commit
6c00dcede6
@ -482,6 +482,10 @@ XML_ParserCreate_MM(const XML_Char *encoding, const XML_Memory_Handling_Suite *m
|
||||
parser->parser->charset = XML_CHAR_ENCODING_NONE;
|
||||
#endif
|
||||
|
||||
#if LIBXML_VERSION >= 20703
|
||||
xmlCtxtUseOptions(parser->parser, XML_PARSE_OLDSAX);
|
||||
#endif
|
||||
|
||||
parser->parser->replaceEntities = 1;
|
||||
parser->parser->wellFormed = 0;
|
||||
if (sep != NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user