Re: Re: Destructors
| From: | Lukas Smith | Date: | Mon, 24 May 2004 14:36:57 +0000 |
| Subject: | Re: Re: Destructors | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-10068@lists.php.net to get a copy of this message | ||
Christian Schneider wrote:
Adam Maccabee Trachtenberg wrote:unless you manually unset the objects in the order in which you want them to be destructed. regards, Lukas SmithThat's not guaranteed to work. PHP 5 does not guarantee that object destructors will be called in any particular order or that the order will remain constant from one invocation to another.Ok, I was under the impression that PHP won't call any destructors of objects still in use but from your comment I guess it does two passes: First collect a list of objects to destruct (which will be everything at the end of the script) and then call all the destructors (in random order).