From: Moriyoshi Koizumi Date: Fri, 5 Dec 2003 10:53:59 +0000 (+0000) Subject: xmlCtxtSetOptions() isn't available in the versions up to 2.6.x X-Git-Tag: php-5.0.0b3RC1~293 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=657b7e08d0dcd58b75fad9123ae4a7c8b1d8ce56;p=php xmlCtxtSetOptions() isn't available in the versions up to 2.6.x # Thanks Rob --- diff --git a/ext/xml/compat.c b/ext/xml/compat.c index 8deba58a24..d11b59b87a 100644 --- a/ext/xml/compat.c +++ b/ext/xml/compat.c @@ -412,7 +412,7 @@ XML_ParserCreate_MM(const XML_Char *encoding, const XML_Memory_Handling_Suite *m } else { parser->parser->charset = XML_CHAR_ENCODING_NONE; } - xmlCtxtUseOptions(parser->parser, XML_PARSE_NO_ENT); + parser->parser->replaceEntities = 1; if (sep != NULL) { parser->use_namespace = 1; parser->_ns_map = xmlHashCreate(10);