Re: [PHP] Unset and __destruct

2012-12-07 Thread Sebastian Krebs
2012/12/6 Pierre du Plessis > Hi all > > I searched the internet (probably not hard enough), and couldn't find a > decent answer. > > I was wondering why, when calling unset on an object, it doesn't > automatically call the __destruct method (if it exists) on the object. > Thats because it was n

[PHP] Unset and __destruct

2012-12-06 Thread Pierre du Plessis
Hi all I searched the internet (probably not hard enough), and couldn't find a decent answer. I was wondering why, when calling unset on an object, it doesn't automatically call the __destruct method (if it exists) on the object. When unsetting an object, php doesn't automatically remove referen