php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1181 $obj->array[$x]->classfield doesn't work!
Submitted: 1999-02-25 03:39 UTC Modified: 1999-03-02 06:54 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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bofh at diegeekdie dot com
New email:
PHP Version: OS:

 

 [1999-02-25 03:39 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-03-02 06:54 UTC] sas
same as #1182
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 13:01:31 2024 UTC