-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOMDocument::loadXML(): CData section too big found #86
Comments
The |
It's basically a feed produced by the client who's content exceeds 10 million characters, which is why we need to have |
No, because a size of 10 MB for a feed does not correspond to a regular usage and possible problems on the consumer side. But you can extend the relevant classes for your use case: laminas-feed/src/Writer/Renderer/Feed/Atom.php Lines 63 to 65 in 669792b
Then render the feed with your custom feed and entry classes: $renderer = new MyCustom\Feed\Atom($feed);
$renderer->setType('atom');
$xml = $renderer->render()->saveXml(); |
Oh ok, thought it might have been a bug. Then the only solution would be to extend the class. Thanks anyways! |
Bug Report
Summary
If data of more than 10 MB is passed to
setContent()
with<![CDATA[{$content}]]>
, we get CData section too big error.Please note that
CDATA
is still not being passed to thesetContent()
as mentioned here.Current behavior
Error is being thrown and execution stops at
loadXML()
located inWriter/Renderer/Entry/Atom.php
.How to reproduce
The following is in PHP:
While creating the feed, simply call the below function inside
setContent()
Expected behavior
XML should be generated for files larger than 10MB.
The text was updated successfully, but these errors were encountered: