I\'m dealing with a third party PHP library that I can\'t edit, and it\'s been working fine for almost a year. It uses simplexml_load_string on the response fro
The libxml2 changelog contains "608773 add a missing check in xmlGROW (Daniel Veillard)", which seems to be related to input buffering. Note I don't know anything about libxml2 internals, but it seems conceivable that you have tickled a 2.7.6 bug fixed in 2.7.7.
Check if the behavior is any different when you use simplexml_load_file() directly, and try setting libxml parser-related options, e.g.
simplexml_load_string($xml, 'SimpleXMLElement', LIBXML_COMPACT | LIBXML_PARSEHUGE)
Specifically, you might want to try the LIBXML_PARSEHUGE flag.
http://php.net/manual/en/libxml.constants.php
XML_PARSE_HUGEflag relaxes any hardcoded limit from the parser. This affects limits like maximum depth of a document or the entity recursion, as well as limits of the size of text nodes.