Bug #54237 [Opn->Csd]: Fatal error: Out of memory
| From: | cmb@php.net | Date: | Wed, 14 Jul 2021 14:35:56 +0000 |
| Subject: | Bug #54237 [Opn->Csd]: Fatal error: Out of memory | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-235034@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
Updated by: cmb@php.net
Reported by: jsakk at mailmetrash dot com
Summary: Fatal error: Out of memory
-Status: Open
+Status: Closed
Type: Bug
Package: Unknown/Other Function
Operating System: Windows 2008 64bit
PHP Version: 5.3.5
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
I'm pretty sure that as of PHP 7.0.0 you can allocate more than 2
GiB on Windows x64 (I'm absultely sure wrt. the actively supported
PHP versions[1]).
On Windows x86, you can allocate up too 2 GiB, and possibly up to
4 GiB (LAA), but not more.
[1] <https://www.php.net/supported-versions.php>
Previous Comments:
------------------------------------------------------------------------
[2017-01-31 16:38:25] mikeotown at msn dot com
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.
------------------------------------------------------------------------
[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.
------------------------------------------------------------------------
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