Integer overflow in memory_limit checked - Can't set a memory limit of 2gb?

I am running PHP 5.1.6 with a 64 bit platform, 7.5 GB of memory. I have memory_limit set to 4 gigs.

I have archived a large number of files (output size ~ = 2gb), so I need this memory.

When zipping the largest of my files, those that fit the 2gb limit that I have imposed, the script fails with:

Integer overflow in memory_limit check detected 

I assume this is due to an integer that holds memory_limit and should be 32 bit. Is there any way around this or can I set a memory access limit of up to 2048M?

+7
php
source share
1 answer

This is a known bug - upgrade to the latest version of PHP :)

ps there is an addition here that says if the problem persists, use 4,000,000,000 instead of 4 GB in the memory_limit directive

+5
source share

All Articles