== Quote from Zeev Suraski ([EMAIL PROTECTED])'s article
> To make a long story short, no.  Circular references are hardly the
> problem, even a one-sided reference can be problematic.  Just one example
> (there are many others) - you have $container and $obj, both are global
> variables, $container has a reference to $obj and uses it during
> destruction.  Voila, you have a problem - you have to somehow ensure that
> $obj's destructor is called only after $container's destructor.

Zeev,

There's something I don't understand: destruction order respects dependences when 
existing functions (except for circular references, but it's normal).

So why does it seem so complicated to implement the same mechanism for global 
variables at a first step? This would resolve all the non-circular references. And 
then, in an unpredictable order for remaining variables.

Regards,
Stephane

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

Reply via email to