Skip to content

Large file with a lot small files will cause "memory leak" #27

@Barry-DareIT

Description

@Barry-DareIT
Q A
Library version(s) affected: 3.1.9
PHP version(s): All
OS (with bit depth): Effects all

Description
Due to the caching in memory of entry content that is less than 512kb, you can easily run out of memory when you try to extract a zip file with a lot of smaller files. Ran into this problem with a zip file containing over a million images of around 400 kb.

How to reproduce
Get a zip file with a lot of entries smaller than 512kb, so it will exceed your memory limit and loop through the entries and get their content.

Possible Solution
Make it possible to set the size threshold for the entry content

Additional context
None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions