diff options
| author | Rob Richards <rrichards@php.net> | 2005-08-15 17:13:15 +0000 |
|---|---|---|
| committer | Rob Richards <rrichards@php.net> | 2005-08-15 17:13:15 +0000 |
| commit | bbe63287e766a25818cff48ec869a897e7747bb4 (patch) | |
| tree | b518dee47e56adda0ac0b14f265ff99d297a4012 /ext/dom | |
| parent | 82a504721e3c6c7e3b75f00e6f8f1a077e24ed2d (diff) | |
| download | php-git-bbe63287e766a25818cff48ec869a897e7747bb4.tar.gz | |
Fixed bug #34103 (line numbering not maintained in dom document)
Diffstat (limited to 'ext/dom')
| -rw-r--r-- | ext/dom/document.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/dom/document.c b/ext/dom/document.c index a76ba5e0fc..28dfda3d46 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); |
