简体   繁体   English

如何恢复被runkit_function_redefine覆盖的函数? 停止运行php进程可能是?

[英]How to restore function overwritten by runkit_function_redefine? Halt running php process mightbe?

Its ok that I redefine a function (lets suppose fsockopen ) but I have no idea how to restore it. 我可以重新定义一个函数(假设假设为fsockopen ),但是我不知道如何恢复它。

EDIT: Im thinking of just halting and restarting the current running PhP process, that might restore everything 编辑:我想只是停止并重新启动当前正在运行的PhP进程,这可能会恢复一切

Yes, you'll need to restart. 是的,您需要重新启动。 Better to use runkit_function_copy to clone the original function before you redefine it. 在重新定义原始函数之前,最好使用runkit_function_copy克隆原始函数。 Then you can easily restore it as needed. 然后,您可以根据需要轻松还原它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM