From 8bdc4285aac7f0087ad7987c57e112bbdd487505 Mon Sep 17 00:00:00 2001 From: Rob Richards Date: Mon, 15 Aug 2005 17:13:57 +0000 Subject: [PATCH] MFH: Fixed bug #34103 (line numbering not maintained in dom document) --- ext/dom/document.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ext/dom/document.c b/ext/dom/document.c index 920d89edfb..302d9b12ac 100644 --- a/ext/dom/document.c +++ b/ext/dom/document.c @@ -1503,9 +1503,8 @@ static xmlDocPtr dom_document_parser(zval *id, int mode, char *source, int optio if (keep_blanks == 0 && ! (options & XML_PARSE_NOBLANKS)) { options |= XML_PARSE_NOBLANKS; } - if (options > 0) { - xmlCtxtUseOptions(ctxt, options); - } + + xmlCtxtUseOptions(ctxt, options); #else ctxt->validate = validate; ctxt->loadsubset = (resolve_externals * XML_COMPLETE_ATTRS); -- 2.40.0