note 113837 rejected from language.oop5.decon by tularis
| From: | tularis@php.net | Date: | Fri, 06 Dec 2013 19:04:37 +0000 |
| Subject: | note 113837 rejected from language.oop5.decon by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-197820@lists.php.net to get a copy of this message | ||
Note Submitter: chill at cuna dot com
----
Something that might help newbies like myself: When __destruct() is called, PHP has garbage
collection well in hand and doesn't need explicit help. If, trying to help, you put
$this = null;
at the end of a class destructor, something like a segmentation fault occurs -- that is, no error is
reported (even with error reporting turned on) but the program stops in its tracks, as though you
had tried to dereference a null pointer or something.