开发者

Integer overflow in memory_limit check detected -- Cannot set memory limit past 2gb?

I'm running PHP 5.1.6 with a 64-bit platform, 7.5 GB memory. I have the memory_limit set to 4 gigs.

I'm zipped a large amount of files (output size ~= 2gb), so I need this memory available.

When zipping the 开发者_如何转开发largest of my files, those that approach the 2gb limit I've imposed, the script fails with:

Integer overflow in memory_limit check detected

I am assuming this has to do with the integer that is holding the memory_limit and it must be 32-bit. Is there a way to work around this or can I only set my memory limit to 2048M?


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

p.s. there is an addendum here which suggests that if the problem persists, use 4000000000 instead of 4GB in the memory_limit directive

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜