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:
Victor Saisa Lopez
2016-08-18 10:29:53 -04:00
parent 4b204f80f8
commit 6a5d57d72c

View File

@@ -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;
}
}