Bug #54237 [Com]: Fatal error: Out of memory
| From: | carsten_sttgt at gmx dot de | Date: | Sat, 12 Mar 2011 18:26:41 +0000 |
| Subject: | Bug #54237 [Com]: Fatal error: Out of memory | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-159427@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
Comment by: carsten_sttgt at gmx dot de
Reported by: jsakk at mailmetrash dot com
Summary: Fatal error: Out of memory
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:
@ Rasmus
> Set it to 0, not -1 to disable it.
In this case you should reclassify this to a documentation problem and
not set it to "Bogus" (see QA "Handling bug reports").
From the manual [1]:
| Note that to have no memory limit, set this directive to -1.
[1] http://de.php.net/manual/en/ini.core.php#ini.memory-limit
Previous Comments:
------------------------------------------------------------------------
[2011-03-12 18:26:36] rasmus@php.net
Set it to 0, not -1 to disable it.
------------------------------------------------------------------------
[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