Details
-
Bug
-
Resolution: Fixed
-
None
-
None
-
Empty show more show less
Description
Huge transit files are producing the following error:
DOMDocument::loadXML(): internal error: Huge input lookup in Entity. This message comes from the underlying LibXML.
The error output will improved in this case, so that the affected filename will be logged.
As solution found so far:
Always remember that with the default parameters this function doesn't handle well large files, i.e. if a text node is longer than 10Mb it can raise an exception stating:
DOMDocument::loadXML(): internal error Extra content at the end of the document in Entity
even though the XML is fine.
The cause is a definition in parserInternals.h of lixml:
#define XML_MAX_TEXT_LENGTH 10000000To allow the function to process larger files, pass the LIBXML_PARSEHUGE as an option and it will work just fine:
$domDocument->loadXML($xml, LIBXML_PARSEHUGE);
from: http://php.net/manual/en/domdocument.loadxml.php#113676
Attachments
Issue Links
- is blocked by
-
TRANSLATE-304 move skeleton-files from DB to disk
- Done