Re: deep compare: nesting level too deep

From: Date: Sat, 25 Jan 2003 00:56:36 +0000
Subject: Re: deep compare: nesting level too deep
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-93652@lists.php.net to get a copy of this message
On Sat, Jan 25, 2003 at 01:00:53AM +0100, Vaclav Dvorak wrote: > 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. Are you trying it with ZE2? Compare those objects with "===" not "==". You'll get the exact result you've expected to see, I suppose. Moriyoshi

« previous php.dev (#93652) next »