note 113837 added to language.oop5.decon

From: Date: Fri, 06 Dec 2013 17:11:06 +0000
Subject: note 113837 added to language.oop5.decon
Groups: php.notes 
Request: Send a blank email to php-notes+get-197818@lists.php.net to get a copy of this message
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. ---- Server IP: 72.52.91.14 Probable Submitter: 72.52.91.14 ---- Manual Page -- http://php.net/manual/en/language.oop5.decon.php Edit -- https://master.php.net/note/edit/113837 Del: integrated -- https://master.php.net/note/delete/113837/integrated Del: useless -- https://master.php.net/note/delete/113837/useless Del: bad code -- https://master.php.net/note/delete/113837/bad+code Del: spam -- https://master.php.net/note/delete/113837/spam Del: non-english -- https://master.php.net/note/delete/113837/non-english Del: in docs -- https://master.php.net/note/delete/113837/in+docs Del: other reasons-- https://master.php.net/note/delete/113837 Reject -- https://master.php.net/note/reject/113837 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#197818) next »