Frank (no reg): DESTRUKTOR

Beitrag lesen

Hi,

Gegenfrage: Warum ausgerechnet in einem Klassen-Destruktor?

<zitat>
PHP 5 introduces a destructor concept similar to that of other object-oriented languages, such as C++. The destructor method will be called as soon as all references to a particular object are removed or when the object is explicitly destroyed or in any order in shutdown sequence.
</zitat>

Vielleicht solltest du dich allgemein mal mit dem Thema Exceptions vertraut machen.

Ciao, Frank