|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #57029 Add functionality to rename class attributes
Submitted: 2006-05-21 06:52 UTC Modified: 2011-10-27 07:15 UTC
From: Assigned: sebastian (profile)
Status: Closed Package: runkit (PECL)
PHP Version: Irrelevant OS: Irrelevant
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.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2006-05-21 06:52 UTC]
I could not find functionality to rename class attributes (and obviously need it ;-).

Reproduce code:
class Foo {
  private $bar;
  protected $bar2;
  public $bar3;

runkit_property_rename('Foo', 'bar', 'baz');
runkit_property_rename('Foo', 'bar2', 'baz2');
runkit_property_rename('Foo', 'bar3', 'baz3');

Expected result:
class Foo {
  private $baz;
  protected $baz2;
  public $baz3;


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-10-27 07:15 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: sebastian
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 20:01:30 2024 UTC