From 9b8f2525aa8cce41185af9e1c45b0ea1ca498c92 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Tue, 1 Dec 2009 02:05:28 +0000 Subject: - 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] --- ext/soap/php_xml.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ext/soap/php_xml.c') 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; -- cgit v1.2.1