Are there any instances when the destructor in PHP is NOT called?

Viewed 2570

This is my first time posting to stackoverflow, but I these threads have helped me tremendously!

Anywho, onto my question... are there any instances when the destructor in PHP is NOT called? The reason I ask is because I have a mapper class which maps data to objects and in the constructor, I start a transaction and in the destructor I'll call a commit (I'll also have a member function which can also do the committal, if necessary). If there are any instances when the destructor isn't called, I'd like to know so I can anticipate it happening and plan appropriately.

Thanks very much!

2 Answers
Related