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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bofh at diegeekdie dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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: Sat Dec 21 18:01:29 2024 UTC