Re: [PHP] Reverse destruction

2006-01-02 Thread Jochem Maas
Mattias Segerdahl wrote: Is it possible to reverse class __destruct() instead of following the class initiations? It makes more sence to me to close objects in last start first close. why don't you go and read up on request shutdown issues and __destruct() - there is plenty in the archives of t

[PHP] Reverse destruction

2006-01-02 Thread Mattias Segerdahl
Is it possible to reverse class __destruct() instead of following the class initiations? It makes more sence to me to close objects in last start first close. Would output, Constructing Class1 Constructing Class2 Constructing Class3 Destructing Class1 Destructing Class2 Destructing Class3 I'd