-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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 cannot parse files larger than 1,3 GiB #14684
Comments
My system goes out of memory before I can complete the parse of the file. |
Ok, from libxml2 2.13.1 function xmlreadMemory returns null while loading huge document. |
Technically I think this can be worked around on by using a custom IO reader. |
When you say that the load method works fine for large files, that is also a file of roughly 1.3GIB? |
DomDocument::load() can load files of size at least 3GiB without a problem. Bigger files are out of my range, because loading that file cost my computer 15 GB of RAM |
Description
The following code:
Resulted in this output:
But I expected this output instead:
I tried using option LIBXML_PARSEHUGE, but result was the same.
The most curious thing is that DomDocument::load() is loading large files correctly.
PHP Version
8.2.5
Operating System
Windows 11, Ubuntu 22.04
The text was updated successfully, but these errors were encountered: