From: asnyder at mddev dot com Operating system: Linux Fedora PHP version: 4.3.10 PHP Bug Type: Reproducible crash Bug description: Crash When memory_get_usage reaches 4868856
Description: ------------ Here's the problem in the nutshell. For whatever reason a class consisting of a bunch of integers, and strings, appears to take up an additional 500k, when added to the session, or even just to the code. According to my math, it should be around .8 of a KB, not around 500KB, eitherway, what happens is when you keep adding more of these objects, it works until it reaches memory_get_usage of 4868856, which is around 4.6 MB!, when the entire page should only be a few KB( furthermore, if you do memory_get_usage on a blank page it starts with a figure around 14384, why is it any size?)if I'm not mistaken, it doesn't finish rendering all the html. Furthermore, if you add one of these 500KB objects, and then later unset(it and all it's components) it, it only frees up 100KB. Why is this happenning? Why are types taking up so much space, and what can I do to get around this problem? Asher Snyder Reproduce code: --------------- Due to legal reasons, I'm not able to paste any code into this area. -- Edit bug report at http://bugs.php.net/?id=33363&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33363&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33363&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33363&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=33363&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=33363&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33363&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33363&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33363&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33363&r=support Expected behavior: http://bugs.php.net/fix.php?id=33363&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33363&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33363&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=33363&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33363&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=33363&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33363&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33363&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33363&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33363&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33363&r=mysqlcfg
