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 ? 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); ?> 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 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
Archived
This topic is now archived and is closed to further replies.