http://qs1969.pair.com?node_id=517118


in reply to Re^3: Out of Memory Error -- Possible Leak?
in thread Out of Memory Error -- Possible Leak?

Okay, I'm curious: does this matter? In my case the foreach loop is going over arrays that have ~100 elements. In this case, I would have expected the maximum memory usage to be 100 x (element-size + over-head). That doesn't seem too large, but it assumes that all memory is getting smoothly cleared after the foreach loop is finished. is that a valid assumption?