Adam Maccabee Trachtenberg wrote:
That'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).


Ignore my first comment, it was posted without any insight in the internals of the GC mechanism :-)

- Chris

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to