Stas is right in certain contexts but it really depends what you are doing.
In any way, what happens with circular references is that you end up
having a circle point at itself, when the Zend Engine frees this, one of
the memory blocks still has a reference count although nothing is really
pointing at it anymore.
Thus we should close that suspended bug "Memory leaks with classes and references to objects" cos it is the correct behaviour unless no one invents a magic mechanism between garbage collection and our evolution at the moment, right?
--
o----------0-¬---------O-·---¬----o---®-----o o O ° .
| http://www.kiffen.de | pRoteçt y0ur bRaín |0 O ° ¤ °
·
0°·³°²'²³-¹'³´³°^°³~³²³°'³²²¨³²^³¹³²°²³`³º³°Þ °
o © ° . ·
| psychedelic experience | gott@kiffen.de | O ° o °
o-¬--o--0-----©-·--O-----o-----0-¤----------o 0 ° · ° . ¤ ·