Bug #1261: Cannot access an array of class objects stored in object

From: Date: Wed, 24 Mar 1999 09:56:28 +0000
Subject: Bug #1261: Cannot access an array of class objects stored in object
Groups: php.dev 
Request: Send a blank email to php-dev+get-4746@lists.php.net to get a copy of this message
From: alsol@ssu.sumy.com 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@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#4746) next »