php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27548 Php crashes when i want to store more then 1 var in $this->menu
Submitted: 2004-03-10 08:41 UTC Modified: 2004-03-15 08:37 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: maarten at servicez dot org Assigned:
Status: No Feedback Package: Reproducible crash
PHP Version: 4.3.4 OS: WinXP
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: maarten at servicez dot org
New email:
PHP Version: OS:

 

 [2004-03-10 08:41 UTC] maarten at servicez dot org
Description:
------------
I have a class making a menu List for my website.
It retrieves information out of a mysql database and then stores this information in menuItem objects.

Then when i want to order and move with some items i have a problem with one array. PHP sometimes shows the page, sometimes it doesn't.

It is only when the variable has the name: menu
ANY other name is allowed and the script is just working fine.

It's line 52 of the script @ servertjuh.nl

When i ran php with --enabled-debug i got this:
FATAL:  erealloc():  Unable to allocate 1685227521 bytes



Reproduce code:
---------------
http://www.servertjuh.nl/external/menuServer.class.phps

Expected result:
----------------
To put $val in $this->menu[]

Actual result:
--------------
an popup of windows with:

In PHP Script Interpreter is een fout opgetreden en moet worden afgesloten. Onze excuses voor dit ongemak.

That means that PHP Script Interpreter has caused a fault.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-03-10 08:45 UTC] derick@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try avoid embedding huge scripts into the report.
 [2004-03-10 08:49 UTC] maarten at servicez dot org
I am afraid that isn't possible because the script is using an database to load it's items and it's a part of a bigger site.

Any ideas?
 [2004-03-10 13:24 UTC] sniper@php.net
You run out of memory, of course it fails. (fix your script..)

 [2004-03-10 13:29 UTC] maarten at servicez dot org
How is that possible when the script executes in less then 1 secs..it's not like it's taking a long time or something
 [2004-03-10 13:33 UTC] derick@php.net
Allocating more than 1 GB is not good, but we really do need a smalls script so that we can try to reproduce it.

Derick
 [2004-03-15 08:37 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 01:01:30 2024 UTC