PHP Manual
This manual is provided as a courtesy. It is not an official source. Please check php.net for updated information.
(PECL)
Renames orig_name to new_name in the global function_table. Useful for temporarily overriding builtin functions.
Example 1. rename_function() example
<?phprename_function('mysql_connect', 'debug_mysql_connect' );?>