php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #548 use of object variables within object function declarations
Submitted: 1998-07-13 11:29 UTC Modified: 1999-06-12 16:34 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: chrism at FOUR dot net Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 3.0.1 OS: any
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: chrism at FOUR dot net
New email:
PHP Version: OS:

 

 [1998-07-13 11:29 UTC] chrism at FOUR dot net
class test {
  var $color;

  function idea ($this->color) {
    echo $this->color . "\n";
  }
}

I think this functionality would be useful and would permit
me for example to pass by reference an object, and store
the object in a class variable without duplication.

Chris McGonagle
chrism@FOUR.net

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-06-12 16:34 UTC] jim at cvs dot php dot net
Not going to happen.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 05:01:28 2024 UTC