![]() |
Memory leak with Zip Encoding Class - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Memory leak with Zip Encoding Class (/showthread.php?tid=32537) |
Memory leak with Zip Encoding Class - El Forum - 07-26-2010 [eluser]OyoKooN[/eluser] Hello, On my project, I use the Cart Class to store photos the user wants to download. When the user has finished, he push a button and my script creates a zip file with all the photos he chose. It works fine the 2-3 first times but after, I get the following error from the PHP log file. Quote:[27-Jul-2010 02:18:16] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 90038607 bytes) in C:\UwAmp\www\glenphotos\system\libraries\Zip.php on line 275 Here is the code I use in my controller. Code: function download() { Thank you for your help. Memory leak with Zip Encoding Class - El Forum - 07-26-2010 [eluser]OyoKooN[/eluser] Okay, I changed my PHP.ini and it's fine now. |