Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Function Renaming in PHP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
LICENSE
README.md Add readme and license files
config.m4
php_rename.c Extension to rename function
php_rename.h

README.md

Function Renaming in PHP

A utility function for renaming functions for the purpose of stubbing out things that are untested

Installation

  • phpize
  • ./configure --enable-rename
  • make && make install

Usage

<?php
function old_function() { }
rename_function('old_function', 'new_function');
Something went wrong with that request. Please try again.