[PHP-DEV] Bug #1261: Cannot access an array of class objects stored in object From: alsol <email protected>
Date: 03/24/99

From: alsol <email protected>
Operating system: FreeBSD 3.1-RELEASE
PHP version: 3.0.6
PHP Bug Type: Parser error
Bug description: Cannot access an array of class objects stored in object

<?
class B
{
        var $y;
        function B( $n )
        {
                $this->y = "test_$n";
        }
};

class A
{
        var $x;
        function A()
        {
                $this->x[0] = new B( 0 );
                $this->x[1] = new B( 1 );
        }
};

$t = new A;
echo $t->x[1]->y;
?>

--
PHP Development Mailing List   http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe <email protected>
For help: php-dev-help <email protected>