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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or 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: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 29 08:01:27 2024 UTC