1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Remove xmlInitParser() call from DOM (#20168)

Follow-up for GH-20150.
This commit is contained in:
Niels Dossche
2025-10-15 09:20:54 +02:00
committed by GitHub
parent e2da92b15c
commit c42fcec453

View File

@@ -1380,8 +1380,6 @@ xmlDocPtr dom_document_parser(zval *id, dom_load_mode mode, const char *source,
substitute_ent = doc_props->substituteentities;
recover = doc_props->recover || (options & XML_PARSE_RECOVER) == XML_PARSE_RECOVER;
xmlInitParser();
if (mode == DOM_LOAD_FILE) {
if (CHECK_NULL_PATH(source, source_len)) {
zend_argument_value_error(1, "must not contain any null bytes");