glenelkins Posted May 24, 2010 Share Posted May 24, 2010 Hi I have a DOM object being created in a Loop and I believe it is causing memory leakage and the script freezes after a while. How do I destroy the object through each loop iteration ? Quote Link to comment https://forums.phpfreaks.com/topic/202709-detroy-dom-object-in-loop/ Share on other sites More sharing options...
JonnoTheDev Posted May 24, 2010 Share Posted May 24, 2010 <?php $object = new classname(); $object->dostuff(); unset($object); ?> Quote Link to comment https://forums.phpfreaks.com/topic/202709-detroy-dom-object-in-loop/#findComment-1062515 Share on other sites More sharing options...
glenelkins Posted May 24, 2010 Author Share Posted May 24, 2010 cool...didn't think it was that simple ha! this may help with memory leaks Quote Link to comment https://forums.phpfreaks.com/topic/202709-detroy-dom-object-in-loop/#findComment-1062543 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.