Bug #1181: $obj->array[$x]->classfield doesn't work!

From: Date: Thu, 25 Feb 1999 08:39:12 +0000
Subject: Bug #1181: $obj->array[$x]->classfield doesn't work!
Groups: php.dev 
Request: Send a blank email to php-dev+get-4269@lists.php.net to get a copy of this message
From: bofh@diegeekdie.com Operating system: Red Hat Linux 5.2 PHP version: 3.0.6 PHP Bug Type: Parser error Bug description: $obj->array[$x]->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@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#4269) next »