|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
22 - 12 = ?
Subscribe to this entry?

 [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: Sun Mar 03 13:01:28 2024 UTC