Bug #54237 [Com]: Fatal error: Out of memory

From: Date: Tue, 31 Jan 2017 16:38:26 +0000
Subject: Bug #54237 [Com]: Fatal error: Out of memory
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-207075@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=54237&edit=1 ID: 54237 Comment by: mikeotown at msn dot com Reported by: jsakk at mailmetrash dot com Summary: Fatal error: Out of memory Status: Open Type: Bug Package: Unknown/Other Function Operating System: Windows 2008 64bit PHP Version: 5.3.5 Block user comment: N Private report: N New Comment: Was it ever determined if PHP on 64-bit Windows can only address 2GB of memory? I'm having a similar issue on a 64-bit machine running Windows 10. Previous Comments: ------------------------------------------------------------------------ [2011-03-12 21:31:16] pajoye@php.net But PHP bins are 32bit. It should be possible to alloc more than 2^32 but I'm not sure it is safe to do it in PHP, given that many places rely on long instead of size_t to work with buffers. ------------------------------------------------------------------------ [2011-03-12 21:27:35] jsakk at mailmetrash dot com holy molly I think you're right but still not 100% sure. Got to figure out why my C code can allocate more as 32 bit app now. Just so I understand better there is no 64 bit php version for Windows but there is for *nix? Thank you rasmus and pajoye! ------------------------------------------------------------------------ [2011-03-12 21:07:22] rasmus@php.net Well, a signed 32-bit integer only gives you 2147483648 so it isn't that far off. ------------------------------------------------------------------------ [2011-03-12 21:01:04] jsakk at mailmetrash dot com Also even if that was the case a 32bit program should still be able to access more then 1901MB of RAM. ------------------------------------------------------------------------ [2011-03-12 20:58:25] jsakk at mailmetrash dot com My C program is also 32bit and it can allocate the full memory just fine. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=54237 -- Edit this bug report at https://bugs.php.net/bug.php?id=54237&edit=1

« previous php.bugs (#207075) next »