php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch php5-soap_xmlParseFile-enable-huge.patch for SOAP related Bug #67427

Patch version 2014-11-21 17:24 UTC

Return to Bug #67427 | Download this patch
Patch Revisions:

Developer: brandt@docoloc.de

--- ext/soap/php_xml.c
+++ ext/soap/php_xml.c
@@ -99,6 +99,9 @@ xmlDocPtr soap_xmlParseFile(const char *
                ctxt->sax->comment = soap_Comment;
                ctxt->sax->warning = NULL;
                ctxt->sax->error = NULL;
+#if LIBXML_VERSION >= 20703
+               ctxt->options |= XML_PARSE_HUGE;
+#endif
                /*ctxt->sax->fatalError = NULL;*/
                old = php_libxml_disable_entity_loader(1 TSRMLS_CC);
                xmlParseDocument(ctxt);

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 13:01:29 2024 UTC