humm, changed the way the SAX parser work when

* parser.c: humm, changed the way the SAX parser work when
  xmlSubstituteEntitiesDefault(1) is set, it will then
  do the entity registration and loading by itself in case the
  user provided SAX getEntity() returns NULL.
* testSAX.c: added --noent to test the behaviour.
Daniel
diff --git a/tree.c b/tree.c
index 98b5b39..900f221 100644
--- a/tree.c
+++ b/tree.c
@@ -556,6 +556,8 @@
     cur->refs = NULL;
     extSubset = cur->extSubset;
     intSubset = cur->intSubset;
+    if (intSubset == extSubset)
+	extSubset = NULL;
     if (extSubset != NULL) {
 	xmlUnlinkNode((xmlNodePtr) cur->extSubset);
 	cur->extSubset = NULL;