Skip to content

Commit c42fcec

Browse files
authored
Remove xmlInitParser() call from DOM (php#20168)
Follow-up for phpGH-20150.
1 parent e2da92b commit c42fcec

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

ext/dom/document.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1380,8 +1380,6 @@ xmlDocPtr dom_document_parser(zval *id, dom_load_mode mode, const char *source,
13801380
substitute_ent = doc_props->substituteentities;
13811381
recover = doc_props->recover || (options & XML_PARSE_RECOVER) == XML_PARSE_RECOVER;
13821382

1383-
xmlInitParser();
1384-
13851383
if (mode == DOM_LOAD_FILE) {
13861384
if (CHECK_NULL_PATH(source, source_len)) {
13871385
zend_argument_value_error(1, "must not contain any null bytes");

0 commit comments

Comments
 (0)