[PHP-DEV] Bug #1182: $obj->array[$x]->classfield doesn't work! From: bofh <email protected>
Date: 02/25/99

From: bofh <email protected>
Operating system: Red Hat Linux 5.2
PHP version: 3.0.6
PHP Bug Type: Parser error
Bug description: $obj-&gt;array[$x]-&gt;classfield doesn't work!

How to test:
class c1 { var $t; }
class c2 { var $s; }
$v1 = new c1;
$v2 = new c2;
$v2->s = "Working!";
$v1->t[] = $v2;

print $v1; /* Object */
print $v1->t; /* Array */
print $v1->t[]; /* Object */
print $v1->t[]->s; /* Should be "Working!" but it fails! */

--
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>