Re: === on objects fails with recursion! WTH?

From: Date: Tue, 01 Nov 2005 15:23:39 +0000
Subject: Re: === on objects fails with recursion! WTH?
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-19885@lists.php.net to get a copy of this message
I proposed a patch to fix this a while back (at least a year ago). --Wez. On 11/1/05, Amin Azez <azez@ufomechanic.net> wrote: > if ($object1===$object2) > > does a recursive check! > "Fatal error: Nesting level too deep - recursive dependency?" > Whats going on? > > I've go lots of object references all highly recursive and I just > sometimes need to check if two objects are the same object i.e. they > have the same storage address; I don't need to (and can't afford the > time) to recursively check every field. > > Is there a ==== instead that REALLY does what it seems === is trying to > fake, presumably to cover up all the object copying that is normally > going on but that I've managed to avoid? > > Sam > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.internals (#19885) next »