#45803 [Opn->Bgs]: Fatal error: Allowed memory size of 134217728 bytes exhausted

From: Date: Wed, 13 Aug 2008 02:21:34 +0000
Subject: #45803 [Opn->Bgs]: Fatal error: Allowed memory size of 134217728 bytes exhausted
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-127996@lists.php.net to get a copy of this message
ID: 45803 Updated by: lbarnaud@php.net Reported By: abhijitkolas at hotmail dot com -Status: Open +Status: Bogus Bug Type: Arrays related Operating System: Windows XP, 2003 PHP Version: 5.2.6 New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php See http://www.php.net/manual/en/ini.core.php#ini.memory-limit Previous Comments: ------------------------------------------------------------------------ [2008-08-13 01:34:10] abhijitkolas at hotmail dot com Description: ------------ The following error is encountered: Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 16 bytes) in F:\jtweb\a.php on line 1 Reproduce code: --------------- <?php for ($x=0;$x<8000000;$x++) $a[] = 'aaaaaa'; echo 'a'; ?> Expected result: ---------------- 'a' should be output. Actual result: -------------- Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 16 bytes) in F:\jtweb\a.php on line 1 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45803&edit=1

« previous php.bugs (#127996) next »