是否可以覆盖已经设置的register_shutdown_function
堆栈?例如:
function f1(){
echo "f1";
}
function f2(){
echo "f2";
}
register_shutdown_function("f1");
echo "actions here";
register_shutdown_function("f2");
call_to_undefined_function(); // to "produce" the error
在这种情况下,我希望脚本只调用
f2()
。这是否可行?