note 12655 rejected from language.oop by sander
| From: | sander@php.net | Date: | Sat, 06 Apr 2002 19:03:11 +0000 |
| Subject: | note 12655 rejected from language.oop by sander | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-28737@lists.php.net to get a copy of this message | ||
>or even:
>
>function destroy(){
>... cleanup code here ...
>unset $this;
>}
>
>Inside script:
>
>$obj->destroy;
>
this code will perform cleaning up.
but does *not* unset() $obj.
because, variable '$this' is another
reference of the object.(in method's
scope)
object will not be released until all of it's references are unsetted.