Jakes wrote:
You calling it from the base so cleaning you be easier than
looking for object referenced variables and setting them to null.
Working in a large class hierarchy it could get painful.

__destruct()


and as far as object references in variables are concerned:
the engine destructs all instance member variables when an
object is destructed, so the reference counts of the
referenced objects are already deceremented
no need to free them by hand (this is even true for PHP 4)

you only have to take care of cleanup yourself when you
have circular refence graphs ...

--
Hartmut Holzgraefe  <[EMAIL PROTECTED]>

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to