#27548 [Fbk->Opn]: Php crashes when i want to store more then 1 var in $this->menu
| From: | maarten at servicez dot org | Date: | Wed, 10 Mar 2004 13:49:15 +0000 |
| Subject: | #27548 [Fbk->Opn]: Php crashes when i want to store more then 1 var in $this->menu | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-56227@lists.php.net to get a copy of this message | ||
ID: 27548
User updated by: maarten at servicez dot org
Reported By: maarten at servicez dot org
-Status: Feedback
+Status: Open
Bug Type: Reproducible crash
Operating System: WinXP
PHP Version: 4.3.4
New Comment:
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?
Previous Comments:
------------------------------------------------------------------------
[2004-03-10 08:45:56] 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:41:37] 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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27548&edit=1