php.net |  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: sebastian@php.net Assigned: sebastian (profile)
Status: Closed Package: runkit (PECL)
PHP Version: Irrelevant OS: Irrelevant
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: sebastian@php.net
New email:
PHP Version: OS:

 

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

Reproduce code:
---------------
<?php
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:
----------------
<?php
class Foo {
  private $baz;
  protected $baz2;
  public $baz3;
}
?>


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-10-27 07:15 UTC] sebastian@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: sebastian
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 17:01:34 2025 UTC