Skip to content

Fix parsing of invoices with large embedded attachments#168

Merged
brtdv merged 1 commit intomasterfrom
fix/libxml-parsehuge-large-attachments
Feb 9, 2026
Merged

Fix parsing of invoices with large embedded attachments#168
brtdv merged 1 commit intomasterfrom
fix/libxml-parsehuge-large-attachments

Conversation

@brtdv
Copy link
Copy Markdown
Contributor

@brtdv brtdv commented Feb 9, 2026

Summary

  • Enables LIBXML_PARSEHUGE on the Sabre XML Service to support parsing UBL documents with large base64-encoded PDF attachments (>10MB)
  • Without this flag, libxml throws "huge text node" errors when encountering large embedded binary objects

Test plan

  • Existing unit tests pass (vendor/bin/phpunit)
  • UBL invoices with large embedded PDF attachments can now be parsed without exceptions

Invoices with large base64-encoded PDF attachments (>10MB) caused
libxml to throw "huge text node" errors during parsing. Setting
LIBXML_PARSEHUGE on the Sabre XML Service removes this limit.
@brtdv brtdv merged commit 30fc1d9 into master Feb 9, 2026
5 checks passed
@brtdv brtdv deleted the fix/libxml-parsehuge-large-attachments branch February 9, 2026 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant