fix : nettoyer le buffer libxml et pin de contrat sur les listes multi-enfants
This commit is contained in:
@@ -35,9 +35,14 @@ final class ZipMessageDecoder
|
||||
@unlink($tempFile);
|
||||
}
|
||||
|
||||
$previous = libxml_use_internal_errors(true);
|
||||
$simpleXml = simplexml_load_string($xml);
|
||||
libxml_use_internal_errors($previous);
|
||||
$previous = libxml_use_internal_errors(true);
|
||||
|
||||
try {
|
||||
$simpleXml = simplexml_load_string($xml);
|
||||
} finally {
|
||||
libxml_clear_errors();
|
||||
libxml_use_internal_errors($previous);
|
||||
}
|
||||
|
||||
if (false === $simpleXml) {
|
||||
throw new RuntimeException('ZipMessageDecoder: XML invalide dans l\'archive ZIP.');
|
||||
|
||||
Reference in New Issue
Block a user