From:             maarten at servicez dot org
Operating system: WinXP
PHP version:      4.3.4
PHP Bug Type:     Reproducible crash
Bug description:  Php crashes when i want to store more then 1 var in $this->menu

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 bug report at http://bugs.php.net/?id=27548&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=27548&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=27548&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=27548&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=27548&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=27548&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=27548&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=27548&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=27548&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=27548&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=27548&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=27548&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=27548&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27548&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=27548&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=27548&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=27548&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27548&r=float

Reply via email to