From 21691cb19bca8c72f6c48f8df782ef40b896cc88 Mon Sep 17 00:00:00 2001 From: Niels Dossche <7771979+nielsdos@users.noreply.github.com> Date: Wed, 28 May 2025 23:53:06 +0200 Subject: [PATCH] Remove uncommented init/cleanup code This is irrelevant and is done by ext/libxml. --- ext/soap/php_xml.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/ext/soap/php_xml.c b/ext/soap/php_xml.c index ca946c1ee08..ca21cf42e5e 100644 --- a/ext/soap/php_xml.c +++ b/ext/soap/php_xml.c @@ -80,10 +80,6 @@ xmlDocPtr soap_xmlParseFile(const char *filename) xmlDocPtr ret; bool old_allow_url_fopen; -/* - xmlInitParser(); -*/ - old_allow_url_fopen = PG(allow_url_fopen); PG(allow_url_fopen) = 1; ctxt = xmlCreateFileParserCtxt(filename); @@ -120,10 +116,6 @@ xmlDocPtr soap_xmlParseFile(const char *filename) ret = NULL; } -/* - xmlCleanupParser(); -*/ - if (ret) { cleanup_xml_node((xmlNodePtr)ret); } @@ -135,10 +127,6 @@ xmlDocPtr soap_xmlParseMemory(const void *buf, size_t buf_size) xmlParserCtxtPtr ctxt = NULL; xmlDocPtr ret; - -/* - xmlInitParser(); -*/ ctxt = xmlCreateMemoryParserCtxt(buf, buf_size); if (ctxt) { bool old; @@ -171,10 +159,6 @@ xmlDocPtr soap_xmlParseMemory(const void *buf, size_t buf_size) ret = NULL; } -/* - xmlCleanupParser(); -*/ - /* if (ret) { cleanup_xml_node((xmlNodePtr)ret);