|  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
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
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


Add a Patch

Pull Requests

Add a Pull Request


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: Sat Mar 02 01:01:28 2024 UTC