如何重命名或覆盖php功能?

Mr *_*rry 2 php runkit

我如何用runkit重新定义php中的函数?

$helloWorld = 'echo "Call require_once";';
runkit_function_redefine('require_once', '$word', $helloWorld);
require_once("abc.php");
Run Code Online (Sandbox Code Playgroud)

我在php.ini中找到了

runkit.internal_override=1
Run Code Online (Sandbox Code Playgroud)

当我跑,它显示:

Warning: runkit_function_redefine() [function.runkit-function-redefine]: require_once() not found in hhd_debug.php on line 2

Warning: require_once(abc.php) [function.require-once]: failed to open stream: No such file or directory in hhd_debug.php on line 3

Fatal error: require_once() [function.require]: Failed opening required 'abc.php' (include_path='.;xampp\php\PEAR') in hhd_debug.php on line 3
Run Code Online (Sandbox Code Playgroud)

我怎么能解决它?请帮我!

dec*_*eze 6

我猜这不起作用,因为它require_once是一种语言结构,而不是一种功能.
我不知道是否有任何其他可能性超越它,我想不会.