Skip to content

Commit 21691cb

Browse files
committed
Remove uncommented init/cleanup code
This is irrelevant and is done by ext/libxml.
1 parent 564df33 commit 21691cb

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

ext/soap/php_xml.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,6 @@ xmlDocPtr soap_xmlParseFile(const char *filename)
8080
xmlDocPtr ret;
8181
bool old_allow_url_fopen;
8282

83-
/*
84-
xmlInitParser();
85-
*/
86-
8783
old_allow_url_fopen = PG(allow_url_fopen);
8884
PG(allow_url_fopen) = 1;
8985
ctxt = xmlCreateFileParserCtxt(filename);
@@ -120,10 +116,6 @@ xmlDocPtr soap_xmlParseFile(const char *filename)
120116
ret = NULL;
121117
}
122118

123-
/*
124-
xmlCleanupParser();
125-
*/
126-
127119
if (ret) {
128120
cleanup_xml_node((xmlNodePtr)ret);
129121
}
@@ -135,10 +127,6 @@ xmlDocPtr soap_xmlParseMemory(const void *buf, size_t buf_size)
135127
xmlParserCtxtPtr ctxt = NULL;
136128
xmlDocPtr ret;
137129

138-
139-
/*
140-
xmlInitParser();
141-
*/
142130
ctxt = xmlCreateMemoryParserCtxt(buf, buf_size);
143131
if (ctxt) {
144132
bool old;
@@ -171,10 +159,6 @@ xmlDocPtr soap_xmlParseMemory(const void *buf, size_t buf_size)
171159
ret = NULL;
172160
}
173161

174-
/*
175-
xmlCleanupParser();
176-
*/
177-
178162
/*
179163
if (ret) {
180164
cleanup_xml_node((xmlNodePtr)ret);

0 commit comments

Comments
 (0)