preparing 2.5.1 release fixing XmlTextReader bug Daniel * configure.in doc/* NEWS: preparing 2.5.1 release * SAX.c parser.c: fixing XmlTextReader bug Daniel
diff --git a/ChangeLog b/ChangeLog index f6e4c74..4ac38b6 100644 --- a/ChangeLog +++ b/ChangeLog
@@ -1,3 +1,8 @@ +Wed Jan 8 18:32:25 CET 2003 Daniel Veillard <daniel@veillard.com> + + * configure.in doc/* NEWS: preparing 2.5.1 release + * SAX.c parser.c: fixing XmlTextReader bug + Wed Jan 8 00:13:01 CET 2003 Daniel Veillard <daniel@veillard.com> * SAX.c: fuck, I introduced a memory leak on external parsed
diff --git a/NEWS b/NEWS index 372fa9f..9aa9861 100644 --- a/NEWS +++ b/NEWS
@@ -17,6 +17,12 @@ +2.5.1: Jan 8 2003: + - Fixes a memory leak and configuration/compilation problems in 2.5.0 + - documentation updates (John) + - a couple of XmlTextReader fixes + + 2.5.0: Jan 6 2003: - New XmltextReader interface based on C# API (with help of Stéphane Bidoul)
diff --git a/SAX.c b/SAX.c index b297749..84d7f6a 100644 --- a/SAX.c +++ b/SAX.c
@@ -374,7 +374,9 @@ } else { ret = xmlGetDocEntity(ctxt->myDoc, name); } - if ((ret != NULL) && (ctxt->validate) && (ret->children == NULL) && + if ((ret != NULL) && + ((ctxt->validate) || (ctxt->replaceEntities)) && + (ret->children == NULL) && (ret->etype == XML_EXTERNAL_GENERAL_PARSED_ENTITY)) { /* * for validation purposes we really need to fetch and
diff --git a/configure.in b/configure.in index f8bba4b..62a9625 100644 --- a/configure.in +++ b/configure.in
@@ -6,7 +6,7 @@ LIBXML_MAJOR_VERSION=2 LIBXML_MINOR_VERSION=5 -LIBXML_MICRO_VERSION=0 +LIBXML_MICRO_VERSION=1 LIBXML_VERSION=$LIBXML_MAJOR_VERSION.$LIBXML_MINOR_VERSION.$LIBXML_MICRO_VERSION LIBXML_VERSION_INFO=`expr $LIBXML_MAJOR_VERSION + $LIBXML_MINOR_VERSION`:$LIBXML_MICRO_VERSION:$LIBXML_MINOR_VERSION
diff --git a/doc/news.html b/doc/news.html index 5d949a6..fa5fdf9 100644 --- a/doc/news.html +++ b/doc/news.html
@@ -104,6 +104,12 @@ Schemas</a> and <a href="http://www.w3.org/TR/xinclude">XInclude</a> </li> </ul> +<h3>2.5.1: Jan 8 2003</h3> +<ul> +<li>Fixes a memory leak and configuration/compilation problems in 2.5.0</li> + <li>documentation updates (John)</li> + <li>a couple of XmlTextReader fixes</li> +</ul> <h3>2.5.0: Jan 6 2003</h3> <ul> <li>New <a href="xmlreader.html">XmltextReader interface</a> based on C#
diff --git a/doc/xml.html b/doc/xml.html index 189bd05..7c7f5e6 100644 --- a/doc/xml.html +++ b/doc/xml.html
@@ -589,6 +589,13 @@ Schemas</a> and <a href="http://www.w3.org/TR/xinclude">XInclude</a></li> </ul> +<h3>2.5.1: Jan 8 2003</h3> +<ul> + <li>Fixes a memory leak and configuration/compilation problems in 2.5.0</li> + <li>documentation updates (John)</li> + <li>a couple of XmlTextReader fixes</li> +</ul> + <h3>2.5.0: Jan 6 2003</h3> <ul> <li>New <a href="xmlreader.html">XmltextReader interface</a> based on C# @@ -2794,6 +2801,7 @@ + } </pre> </li> <li>And then use it to save the document:
diff --git a/doc/xmlio.html b/doc/xmlio.html index 2a76caa..1bc2018 100644 --- a/doc/xmlio.html +++ b/doc/xmlio.html
@@ -259,6 +259,7 @@ + } </pre> </li> <li>And then use it to save the document:
diff --git a/parser.c b/parser.c index 79b46c0..54159d3 100644 --- a/parser.c +++ b/parser.c
@@ -9477,6 +9477,7 @@ ctxt = xmlCreateEntityParserCtxt(URL, ID, NULL); if (ctxt == NULL) return(-1); ctxt->userData = ctxt; + ctxt->_private = ctx->_private; oldsax = ctxt->sax; ctxt->sax = ctx->sax; newDoc = xmlNewDoc(BAD_CAST "1.0");