PHP.SU
FORUM.PHP.SU
(no version information, might be only in CVS)
Name of function to redefine
New list of arguments to be accepted by function
New code implementation
Возвращает TRUE в случае успешного завершения или FALSE в случае возникновения ошибки.
Пример 1. A runkit_function_redefine() example
<?phpfunction testme() { echo "Original Testme Implementation\n";}testme();runkit_function_redefine('testme','','echo "New Testme Implementation\n";');testme();?>
Результат выполнения данного примера:
Original Testme Implementation New Testme Implementation