summaryrefslogtreecommitdiff
path: root/ext/soap/php_xml.c
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2009-12-01 02:05:28 +0000
committerFelipe Pena <felipe@php.net>2009-12-01 02:05:28 +0000
commit1ca7c276389d7fc0990a7218c3c96ca72c7e1c18 (patch)
treec3a037f467878ed7ade558d53513432f4fa8322f /ext/soap/php_xml.c
parentaa1904f4abfe1c4c72c2492b0e40b3d292aa905f (diff)
downloadphp-git-1ca7c276389d7fc0990a7218c3c96ca72c7e1c18.tar.gz
- Fixed bug #49660 (libxml 2.7.3+ limits text nodes to 10MB). (Felipe)
- Added LIBXML_PARSEHUGE constant to overrides the maximum text size of a single text node when using libxml2.7.3+. (Kalle) [DOC]
Diffstat (limited to 'ext/soap/php_xml.c')
-rw-r--r--ext/soap/php_xml.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/soap/php_xml.c b/ext/soap/php_xml.c
index 4bc14a46d3..30d34535e6 100644
--- a/ext/soap/php_xml.c
+++ b/ext/soap/php_xml.c
@@ -138,6 +138,9 @@ xmlDocPtr soap_xmlParseMemory(const void *buf, size_t buf_size)
ctxt->sax->warning = NULL;
ctxt->sax->error = NULL;
/*ctxt->sax->fatalError = NULL;*/
+#if LIBXML_VERSION >= 20703
+ ctxt->options |= XML_PARSE_HUGE;
+#endif
xmlParseDocument(ctxt);
if (ctxt->wellFormed) {
ret = ctxt->myDoc;