diff options
Diffstat (limited to 'ext/xml/compat.c')
| -rw-r--r-- | ext/xml/compat.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/xml/compat.c b/ext/xml/compat.c index e8f5f285d7..e6f4d198cf 100644 --- a/ext/xml/compat.c +++ b/ext/xml/compat.c @@ -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) { |
