Well so wouldn't 'reverse construction order' mean: $container=...; $obj = $container->getFoo(); results in call of $obj->__destruct(); and then $container->__destruct(); maybe i just missed the problem here?
Yes, and yes you did :) The whole problem is if $container needs to use Foo, its element, during destruction.
Zeev
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php