Skip to content

XML parsing not in chunks, parser out of memory #598

@amanmanglik

Description

@amanmanglik

This started as a wordpress issue for me but the issue roots from SimplePie so reporting here as well. SimplePie reads xml file as a single large chunk instead of multiple chunks and the parser goes out of memory because there seems to be a per chunk memory limit in the underlying php xml_parse function.

Code in question - https://github.com/simplepie/simplepie/blob/master/library/SimplePie/Parser.php#L167-L172

Potential fix and more context here - https://wordpress.org/support/topic/xml-parsing-not-in-chunks-parser-out-of-memory/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions