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
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: 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

Pull Requests

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: Sun Oct 06 07:01:27 2024 UTC