== Quote from Andi Gutmans ([EMAIL PROTECTED])'s article > He doesn't necessarily own a reference but tries to access it in the > destructor.
IMO, this is bad programming. If an object wants to access another object (global or not), it has to own a reference on it, to guaranty the referenced object will be destroyed afterwards (so including destructor).
You are getting into coding style now.
The bottom line is that there are lots of different ways of writing code and many ppl do different stuff and often odd stuff.
We think the solution that exists today is most likely to suit the largest amount of PHP users.
The same way you are complaining ppl will complain if they can't access $GLOBALS[] from the destructor.
Andi
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php