ID: 33363 User updated by: asnyder at mddev dot com Reported By: asnyder at mddev dot com Status: Bogus Bug Type: Reproducible crash Operating System: Linux Fedora PHP Version: 4.3.10 New Comment:
I'm trying my best to explain. if I wer eto include code, it would be thousands and thousands of lines of code. This is not a basic PHP script or app, so I can't go into it. If your willing to sign an NDA, I can send you to a link where you can check out the problem yourself. Can you at least answer why objects take up so much space in the memory? Previous Comments: ------------------------------------------------------------------------ [2005-06-16 16:44:57] [EMAIL PROTECTED] If you are not willing to provide useful information then we can't help. ------------------------------------------------------------------------ [2005-06-16 16:41:56] asnyder at mddev dot com Unfortunately, there would be no way for you to reproduce this bug due to our new technology, but I'm not allowed to explain what that is, or how ti works, but the description should be all you need. Sorry. Asher ------------------------------------------------------------------------ [2005-06-16 16:31:36] [EMAIL PROTECTED] 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 to avoid embedding huge scripts into the report. ------------------------------------------------------------------------ [2005-06-16 16:31:01] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip ------------------------------------------------------------------------ [2005-06-16 16:24:53] asnyder at mddev dot com 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 this bug report at http://bugs.php.net/?id=33363&edit=1