(PECL)
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