php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1182 $obj->array[$x]->classfield doesn't work!
Submitted: 1999-02-25 03:49 UTC Modified: 1999-06-20 20:28 UTC
From: bofh at diegeekdie dot com Assigned:
Status: Closed Package: Parser error
PHP Version: 3.0.6 OS: Red Hat Linux 5.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
46 + 16 = ?
Subscribe to this entry?

 
 [1999-02-25 03:49 UTC] bofh at diegeekdie dot com
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! */

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-06-20 20:28 UTC] jim at cvs dot php dot net
Will be fixed in PHP4.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 01 21:01:29 2024 UTC