]> granicus.if.org Git - php/commitdiff
Fixed bug #34103 (line numbering not maintained in dom document)
authorRob Richards <rrichards@php.net>
Mon, 15 Aug 2005 17:13:15 +0000 (17:13 +0000)
committerRob Richards <rrichards@php.net>
Mon, 15 Aug 2005 17:13:15 +0000 (17:13 +0000)
ext/dom/document.c

index a76ba5e0fc3a138b407c49f3aa698babdbda0133..28dfda3d467c5eb75e26652fab675e662033a312 100644 (file)
@@ -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);