Re: [PHP] Destructor not called when extending SimpleXMLElement

2012-07-03 Thread Nick Chalk
Thanks Erwin and Matijn. On 2 July 2012 17:32, Matijn Woudt wrote: > This is most likely a bug in PHP. A deconstructor is called when there > are no references left to the object. Since this class uses the libXML > library, it is likely that there are still references from the libXML > open on th

Re: [PHP] Destructor not called when extending SimpleXMLElement

2012-07-02 Thread Matijn Woudt
On Mon, Jul 2, 2012 at 1:58 PM, Nick Chalk wrote: > Afternoon all. > > I seem to be having a little trouble with extending the > SimpleXMLElement class. I would like to add a destructor to the > subclass, but am finding that it is not called. > > Attached is a minimal demonstration of the problem.

Re: [PHP] Destructor not called when extending SimpleXMLElement

2012-07-02 Thread Erwin Poeze
Interesting problem. I would expect it to work too. I assume it is a bug. 2012/7/2 Nick Chalk > Afternoon all. > > I seem to be having a little trouble with extending the > SimpleXMLElement class. I would like to add a destructor to the > subclass, but am finding that it is not called. > > Atta