Re: PHP allocating too much memory

From: Date: Wed, 15 Jun 2016 13:55:50 +0000
Subject: Re: PHP allocating too much memory
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-94011@lists.php.net to get a copy of this message
On 15/06/2016 14:01, Peter LeBrun wrote:
The weirdest part about this is that PHP is somehow trying to allocate 140TB of memory.
I've seen numbers like that a few times - always around 140TB, but the exact number varies. I assume it's an overflow (or underflow?) somewhere, but the exact mechanism escapes me. (It's close to 2^47, but not very close; I've got examples logged as "low" as 140090229815192, and I think I've seen under 140 trillion.) Apart from sheer curiosity of where this magic number comes from, I wonder if there is some sanity check missing in the memory manager to at least display a different error message... Regards, -- Rowan Collins [IMSoP]

« previous php.internals (#94011) next »