Skip to content

Commit fc5a6b2

Browse files
committed
Stop setting parse options directly
Setting this directly will be deprecated in libxml2 2.14.
1 parent 1eb942b commit fc5a6b2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ext/xml/compat.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,9 +471,8 @@ XML_ParserCreate_MM(const XML_Char *encoding, const XML_Memory_Handling_Suite *m
471471
}
472472

473473
php_libxml_sanitize_parse_ctxt_options(parser->parser);
474-
xmlCtxtUseOptions(parser->parser, XML_PARSE_OLDSAX);
474+
xmlCtxtUseOptions(parser->parser, XML_PARSE_OLDSAX | XML_PARSE_NOENT);
475475

476-
parser->parser->replaceEntities = 1;
477476
parser->parser->wellFormed = 0;
478477
if (sep != NULL) {
479478
/* Note: sax2 flag will be set due to the magic number in `initialized` in php_xml_compat_handlers */

0 commit comments

Comments
 (0)