Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13378 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86756 invoked by uid 1010); 19 Oct 2004 01:19:06 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 84331 invoked from network); 19 Oct 2004 01:18:41 -0000 Received: from unknown (HELO mail.zend.com) (80.74.107.235) by pb1.pair.com with SMTP; 19 Oct 2004 01:18:41 -0000 Received: (qmail 564 invoked from network); 19 Oct 2004 01:18:40 -0000 Received: from localhost (HELO AndiNotebook.zend.com) (127.0.0.1) by localhost with SMTP; 19 Oct 2004 01:18:40 -0000 Message-ID: <5.1.0.14.2.20041018181825.04dc66e0@localhost> X-Sender: andi@localhost X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Mon, 18 Oct 2004 18:18:37 -0700 To: "Francisco M. Marzoa Alonso" ,internals@lists.php.net In-Reply-To: <4173E39D.1000509@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] Nesting level too deep - recursive dependency? From: andi@zend.com (Andi Gutmans) References: <4173E39D.1000509@gmx.net> Are you using zend.zend1_compatibility_mode on? Andi At 05:39 PM 10/18/2004 +0200, Francisco M. Marzoa Alonso wrote: >This code: > > >class TestClass { > public $myself; > > function __construct () { > $this->myself = $this; > } >} > >$TestObj = new TestClass (); > >if ( $TestObj->myself == $TestObj ) { > echo "They are same.\n"; >} > >?> > >Gives me a "Fatal error: Nesting level too deep - recursive dependency?" >on line #13: if ( $TestObj->myself == ...) > >Could this be a PHP bug or I'm doing something wrong? > >FYI: > >PHP Version 5.0.2 >PHP API 20031224 >PHP Extension 20040412 >Zend Extension 220040412 >Server API Apache 2.0 Handler > >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: http://www.php.net/unsub.php