diff options
author | Felipe Pena <felipe@php.net> | 2009-12-01 02:05:28 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2009-12-01 02:05:28 +0000 |
commit | 9b8f2525aa8cce41185af9e1c45b0ea1ca498c92 (patch) | |
tree | 90e6bce2cfea56abb6946119b622588b9e9d8a40 /ext/libxml | |
parent | af3adf85044c38d167e53048a49a26b6c996a6d3 (diff) | |
download | php-git-9b8f2525aa8cce41185af9e1c45b0ea1ca498c92.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/libxml')
-rw-r--r-- | ext/libxml/libxml.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/libxml/libxml.c b/ext/libxml/libxml.c index 40f425760f..2ea3000072 100644 --- a/ext/libxml/libxml.c +++ b/ext/libxml/libxml.c @@ -622,6 +622,9 @@ static PHP_MINIT_FUNCTION(libxml) REGISTER_LONG_CONSTANT("LIBXML_COMPACT", XML_PARSE_COMPACT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("LIBXML_NOXMLDECL", XML_SAVE_NO_DECL, CONST_CS | CONST_PERSISTENT); #endif +#if LIBXML_VERSION >= 20703 + REGISTER_LONG_CONSTANT("LIBXML_PARSEHUGE", XML_PARSE_HUGE, CONST_CS | CONST_PERSISTENT); +#endif REGISTER_LONG_CONSTANT("LIBXML_NOEMPTYTAG", LIBXML_SAVE_NOEMPTYTAG, CONST_CS | CONST_PERSISTENT); /* Error levels */ |