Re: Nesting level too deep - recursive dependency?

From: Date: Mon, 18 Oct 2004 15:26:24 +0000
Subject: Re: Nesting level too deep - recursive dependency?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-199736@lists.php.net to get a copy of this message
Ah, OK thanks for your advice Chris. Chris Dowell wrote:
Francisco You really need to post this to internals@lists.php.net - this list is for us lowly users of PHP, the developers and maintainers of the language have their own list. Cheers Chris Francisco M. Marzoa Alonso wrote:
Can someone tell me if I should fill a bug report about this or is it my fault??? Francisco M. Marzoa Alonso wrote:
This code: <?php 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


« previous php.general (#199736) next »