Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - mtu

Pages: [1]
1
Hello,
I wonder why I couldn't find this Problem in the forum. Anyway I should describe it first:

When I collect e.g. 10 images in the lightbox and download them as a zip file, everthings works fine.
But I collected 17 images with the overall size of 2.8MB and tried to download them.
What happens is that just nothing happens. I could reproduce this bug with other 4image picture galleries.

I guessed the fault is somewhere in the download.php or includes/zip.php, where the zip file is build.

When i tried to debug this I found the following PHP-Error:
Code: [Select]
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 142493 bytes) in
/var/www/4images/includes/zip.php on line 81

So what I guess is that the zip file is stored in one variable in the php script, this means that it is stored in the memory.
Wouldn't it be better to write it bit by bit to the requesting browser, so that it is not necessary to store the whole zip file in the memory.

Has someone a solution for this?

Many greetings, Max

Pages: [1]