Hello list,

I seem to have weird kinds of problems. I probably use some very unusual ways to program. I wonder if it's good or bad. ;-)

I have an object that has a member variable that is an array whose elements are references to other ("child") objects. Those child objects, in turn, hold a reference to the "parent" object.

When I try to compare two "child" objects, PHP says: "Fatal error: Nesting level too deep - recursive dependency?". Well, yes, it _is_ a recursive dependency, but I don't see why PHP could not compare those objects anyway? Isn't it possible to tell whether two "names" reference the same "variable"? In fact, I'm comparing two references to the very same object, so the comparison could stop right there and not compare any members of the object.

Vaclav Dvorak <[EMAIL PROTECTED]>

PS: Any new ideas, opinions or fact on my foreach problem?


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

Reply via email to