CodeIgniter Forums
Zip library consumes too much memory... - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6)
+--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17)
+--- Thread: Zip library consumes too much memory... (/showthread.php?tid=1604)



Zip library consumes too much memory... - ircdirk - 03-25-2015

CodeIniter Zip library consumes too much memory. Im getting php fatal error: "Allowed memory size of x bytes exhausted".

That is becouse Zip library gets data with file_get_contents() (read_file() method) and with big files thats an issue. Zip library should be rewritten to use streamed reading/zipping of file.

p.s. i have moved this thread to this forum (deleted other duplicated thread).


RE: Zip library consumes too much memory... - alkarim - 04-23-2015

Well that seems to be rare problem