summaryrefslogtreecommitdiff
path: root/ext/soap/php_xml.c
diff options
context:
space:
mode:
authorOndřej Surý <ondrej@sury.org>2013-02-25 16:11:05 +0100
committerOndřej Surý <ondrej@sury.org>2013-02-25 16:11:05 +0100
commitc8013604b48675ec2b266aa186bb6c3126c47cca (patch)
treede627cca2457af7c3c0a6498906ff49b4d2f722d /ext/soap/php_xml.c
parent28f17d3b49950d50f3900f84d74d7cc0822b123d (diff)
downloadphp-upstream/5.4.12.tar.gz
Imported Upstream version 5.4.12upstream/5.4.12
Diffstat (limited to 'ext/soap/php_xml.c')
-rw-r--r--ext/soap/php_xml.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/soap/php_xml.c b/ext/soap/php_xml.c
index cf7fead6b..737a335e3 100644
--- a/ext/soap/php_xml.c
+++ b/ext/soap/php_xml.c
@@ -92,6 +92,7 @@ xmlDocPtr soap_xmlParseFile(const char *filename TSRMLS_DC)
PG(allow_url_fopen) = old_allow_url_fopen;
if (ctxt) {
ctxt->keepBlanks = 0;
+ ctxt->options &= ~XML_PARSE_DTDLOAD;
ctxt->sax->ignorableWhitespace = soap_ignorableWhitespace;
ctxt->sax->comment = soap_Comment;
ctxt->sax->warning = NULL;
@@ -133,6 +134,7 @@ xmlDocPtr soap_xmlParseMemory(const void *buf, size_t buf_size)
*/
ctxt = xmlCreateMemoryParserCtxt(buf, buf_size);
if (ctxt) {
+ ctxt->options &= ~XML_PARSE_DTDLOAD;
ctxt->sax->ignorableWhitespace = soap_ignorableWhitespace;
ctxt->sax->comment = soap_Comment;
ctxt->sax->warning = NULL;