(Each project requires you to login separately)

mediaattach

Ticket #73 (new bug)

Opened 4 months ago

Memory leak in download functionality

Reported by: Guite Owned by:
Priority: major Milestone: 1.1
Component: All general things Version: 1.0
Keywords: Cc:

Description

The download function currently uses FileUtil::readFile to read out the desired file and output it dynamically to the user.

Only this way one can forbid direct access, use Zikula permissions consequently and support storage outside the webroot.

However this leads to memory problems for larger files, something like:
Fatal error: Allowed memory size of 100663296 bytes exhausted (tried to allocate 43345921 bytes) in /.../.../modules/MediaAttach/pnuser/download.php on line 74

Perhaps something like an enhanced reader might be possible processing files only with a few chunks in a loop.

Note: See TracTickets for help on using tickets.
 
 
Powered by Trac
Design by Arcsin