HOR-1623 "It is not possible to import processes with more than 10mb" SOLVED
Issue:
It is not possible to import processes with more than 10mb
Cause:
DOMDocument::loadXML(), esta funcion no maneja bien los archivos grandes, es decir, si un nodo de texto es mas
largo de 10 Mb, entonces lanza una excepcion
Solution:
Se usa la constante LIBXML_PARSEHUGE
This commit is contained in:
@@ -32,7 +32,7 @@ class XmlImporter extends Importer
|
||||
}
|
||||
|
||||
$loadFilename = (is_null($filename))? $this->filename : $filename;
|
||||
$this->dom->loadXml(file_get_contents($loadFilename));
|
||||
$this->dom->loadXml(file_get_contents($loadFilename), LIBXML_PARSEHUGE);
|
||||
$this->root = $this->dom->documentElement;
|
||||
|
||||
// validate version
|
||||
@@ -167,4 +167,3 @@ class XmlImporter extends Importer
|
||||
return $this->objects;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user