Skip to content

Commit 571f119

Browse files
committed
dom: Remove pointless checks when setting options
1 parent 12b16c6 commit 571f119

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ext/dom/document.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1432,16 +1432,16 @@ xmlDocPtr dom_document_parser(zval *id, dom_load_mode mode, const char *source,
14321432
ctxt->sax->warning = php_libxml_ctx_warning;
14331433
}
14341434

1435-
if (validate && ! (options & XML_PARSE_DTDVALID)) {
1435+
if (validate) {
14361436
options |= XML_PARSE_DTDVALID;
14371437
}
1438-
if (resolve_externals && ! (options & XML_PARSE_DTDATTR)) {
1438+
if (resolve_externals) {
14391439
options |= XML_PARSE_DTDATTR;
14401440
}
1441-
if (substitute_ent && ! (options & XML_PARSE_NOENT)) {
1441+
if (substitute_ent) {
14421442
options |= XML_PARSE_NOENT;
14431443
}
1444-
if (keep_blanks == 0 && ! (options & XML_PARSE_NOBLANKS)) {
1444+
if (keep_blanks == 0) {
14451445
options |= XML_PARSE_NOBLANKS;
14461446
}
14471447
if (recover) {

0 commit comments

Comments
 (0)