php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45803 Fatal error: Allowed memory size of 134217728 bytes exhausted
Submitted: 2008-08-13 01:34 UTC Modified: 2008-08-13 02:21 UTC
From: abhijitkolas at hotmail dot com Assigned:
Status: Not a bug Package: Arrays related
PHP Version: 5.2.6 OS: Windows XP, 2003
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: abhijitkolas at hotmail dot com
New email:
PHP Version: OS:

 

 [2008-08-13 01:34 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-08-13 02:21 UTC] lbarnaud@php.net
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

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 13 00:01:31 2025 UTC