Edit report at http://bugs.php.net/bug.php?id=54237&edit=1

 ID:                 54237
 Comment by:         jsakk at mailmetrash dot com
 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:

If I set memory_limit = 0 I get "Could not Start" so I believe -1 is
correct as per the php documentation.



That said.



Even if i set it to memory_limit = 5G



I get the same results with it stopping @ approx 1901MB


Previous Comments:
------------------------------------------------------------------------
[2011-03-12 19:42:23] [email protected]

Did it work with 0?

------------------------------------------------------------------------
[2011-03-12 19:31:06] [email protected]

> doc

------------------------------------------------------------------------
[2011-03-12 19:26:39] carsten_sttgt at gmx dot de

@ 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

------------------------------------------------------------------------
[2011-03-12 18:26:36] [email protected]

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

Reply via email to