Bug #54237 [Opn->Bgs]: Fatal error: Out of memory
| From: | rasmus@php.net | Date: | Sat, 12 Mar 2011 17:26:36 +0000 |
| Subject: | Bug #54237 [Opn->Bgs]: Fatal error: Out of memory | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-159426@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: rasmus@php.net
Reported by: jsakk at mailmetrash dot com
Summary: Fatal error: Out of memory
-Status: Open
+Status: Bogus
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:
Set it to 0, not -1 to disable it.
Previous Comments:
------------------------------------------------------------------------
[2011-03-12 18:18:48] jsakk at mailmetrash dot com
Description:
------------
System has 24GB of RAM and 10GB used at time of running
memory_limit = -1 in PHP.INI
Running PHP.EXE on command line
Fatal error: Out of memory (allocated 1993342976) (tried to allocate 162
bytes)
Only able to allocate approx 1901MB
Test script:
---------------
<?php
while(1)
{
$a[]="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
echo memory_get_usage() . " BYTES OR " . memory_get_usage()/1024/1024 .
" MB\n";
}
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=54237&edit=1