File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 1
1
PHP NEWS
2
2
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
3
3
?? ??? 20??, PHP 5.3.2
4
+ - Added LIBXML_PARSEHUGE constant to overrides the maximum text size of a
5
+ single text node when using libxml2.7.3+. (Kalle)
6
+
4
7
- Upgraded bundled sqlite to version 3.6.20. (Ilia)
5
8
- Upgraded bundled PCRE to version 8.00. (Scott)
6
9
@@ -81,6 +84,7 @@ PHP NEWS
81
84
property in base class). (Felipe)
82
85
- Fixed bug #49677 (ini parser crashes with apache2 and using ${something}
83
86
ini variables). (Jani)
87
+ - Fixed bug #49660 (libxml 2.7.3+ limits text nodes to 10MB). (Felipe)
84
88
- Fixed bug #49647 (DOMUserData does not exist). (Rob)
85
89
- Fixed bug #49521 (PDO fetchObject sets values before calling constructor).
86
90
(Pierrick)
Original file line number Diff line number Diff line change @@ -621,6 +621,9 @@ static PHP_MINIT_FUNCTION(libxml)
621
621
#if LIBXML_VERSION >= 20621
622
622
REGISTER_LONG_CONSTANT ("LIBXML_COMPACT" , XML_PARSE_COMPACT , CONST_CS | CONST_PERSISTENT );
623
623
REGISTER_LONG_CONSTANT ("LIBXML_NOXMLDECL" , XML_SAVE_NO_DECL , CONST_CS | CONST_PERSISTENT );
624
+ #endif
625
+ #if LIBXML_VERSION >= 20703
626
+ REGISTER_LONG_CONSTANT ("LIBXML_PARSEHUGE" , XML_PARSE_HUGE , CONST_CS | CONST_PERSISTENT );
624
627
#endif
625
628
REGISTER_LONG_CONSTANT ("LIBXML_NOEMPTYTAG" , LIBXML_SAVE_NOEMPTYTAG , CONST_CS | CONST_PERSISTENT );
626
629
Original file line number Diff line number Diff line change @@ -138,6 +138,9 @@ xmlDocPtr soap_xmlParseMemory(const void *buf, size_t buf_size)
138
138
ctxt -> sax -> warning = NULL ;
139
139
ctxt -> sax -> error = NULL ;
140
140
/*ctxt->sax->fatalError = NULL;*/
141
+ #if LIBXML_VERSION >= 20703
142
+ ctxt -> options |= XML_PARSE_HUGE ;
143
+ #endif
141
144
xmlParseDocument (ctxt );
142
145
if (ctxt -> wellFormed ) {
143
146
ret = ctxt -> myDoc ;
You can’t perform that action at this time.
0 commit comments