Re: [PHP-DEV] status of __destruct

2003-12-05 Thread Andi Gutmans
Destructors are only called during a clean shutdown (i.e. no E_ERROR). They should actually be called by an exit() call. Can you post a short reproducing script (maybe with a print instead of a touch()) that displays this problem? Andi At 11:45 AM 12/5/2003 +0100, John Huntjens wrote: What the

[PHP-DEV] status of __destruct

2003-12-05 Thread John Huntjens
What the status of destruct, should it work? I am asking because all the simple provided examples work, but in a more complex situation __destruct is never called. Is destruct called on a object when a exit is issued? for debugging I use this destruct: function __destruct() { touch("/tmp/des