Bug #54237 [Tbd]: Fatal error: Out of memory
| From: | pajoye@php.net | Date: | Sat, 12 Mar 2011 20:31:16 +0000 |
| Subject: | Bug #54237 [Tbd]: Fatal error: Out of memory | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-159443@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=54237&edit=1
ID: 54237
Updated by: pajoye@php.net
Reported by: jsakk at mailmetrash dot com
Summary: Fatal error: Out of memory
Status: To be documented
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:
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.
Previous Comments:
------------------------------------------------------------------------
[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.
------------------------------------------------------------------------
[2011-03-12 20:47:35] rasmus@php.net
But the app can still only address a 32-bit address space on Windows
even if you
are running 64-bit Windows.
------------------------------------------------------------------------
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
http://bugs.php.net/bug.php?id=54237
--
Edit this bug report at http://bugs.php.net/bug.php?id=54237&edit=1