Skip to content

Commit ac9164a

Browse files
committed
Add LIBXML_PARSEHUGE to allow parsing large metadata files
1 parent c287b76 commit ac9164a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/MetaLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ private function saveState(array $source, ?array $responseHeaders): void
460460
private function loadXML(string $data, array $source): array
461461
{
462462
try {
463-
$doc = DOMDocumentFactory::fromString($data);
463+
$doc = DOMDocumentFactory::fromString($data, DOMDocumentFactory::DEFAULT_OPTIONS | LIBXML_PARSEHUGE);
464464
} catch (Exception $e) {
465465
throw new Exception('Failed to read XML from ' . $source['src']);
466466
}

0 commit comments

Comments
 (0)