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:

rasmus thanks for the quick reply.



How can you be sure it's a Windows problem?



If I re-write the same code in C and it has no problem allocating all
the RAM.



Perhaps it's a PHP problem on Windows?


Previous Comments:
------------------------------------------------------------------------
[2011-03-12 19:46:18] [email protected]

Seems like a Windows-specific issue then. No such problems on
Linux/FreeBSD.

------------------------------------------------------------------------
[2011-03-12 19:42:35] jsakk at mailmetrash dot com

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

------------------------------------------------------------------------
[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

------------------------------------------------------------------------


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

Reply via email to