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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
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-2024 The PHP Group
All rights reserved.
Last updated: Wed Oct 09 04:01:27 2024 UTC