Comments By: Carsten Klein
-
calling __destruct() normally will leave the object in an undefined state, i.e. parent::__toString() may no longer be available after that the destructor was invoked it is better to introduce a second method that will do the cleanup rather than the destructor, the destructor may always rely on the second method in order to do the clean up on destruction of the instanceposted on Mar 12, 2008 at 11:43pm | context