Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13418 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83091 invoked by uid 1010); 20 Oct 2004 17:58:11 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 81680 invoked from network); 20 Oct 2004 17:58:01 -0000 Received: from unknown (HELO mail.zend.com) (80.74.107.235) by pb1.pair.com with SMTP; 20 Oct 2004 17:58:01 -0000 Received: (qmail 18870 invoked from network); 20 Oct 2004 17:57:58 -0000 Received: from localhost (HELO AndiNotebook.zend.com) (127.0.0.1) by localhost with SMTP; 20 Oct 2004 17:57:58 -0000 Message-ID: <5.1.0.14.2.20041020105752.02392730@localhost> X-Sender: andi@localhost X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Wed, 20 Oct 2004 10:57:55 -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> Fixed in CVS. 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