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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC