Re: [RFC] Magic Method that handles unset($object)
| From: | Etienne Kneuss | Date: | Sun, 10 Dec 2006 15:16:36 +0000 |
| Subject: | Re: [RFC] Magic Method that handles unset($object) | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-26886@lists.php.net to get a copy of this message | ||
Hi,
nah, take a look at my echo "--end--\n"; which gets displayed after the __destruct calls. The $parent = null will trigger the destructors.
Sebastian Bergmann wrote:
Etienne Kneuss wrote:-- Etienne Kneuss http://www.colder.ch colder@php.net Men never do evil so completely and cheerfully as when they do it from a religious conviction. -- PascalParentC::__construct() Child::__construct() ParentC::__destruct() Child::__destruct()You only get this result (ie. the __destruct() calls) because you reach the end of the script, not because unset() is called.