Edit report at http://bugs.php.net/bug.php?id=54237&edit=1
ID: 54237 Updated by: [email protected] 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
