Its ok that I redefine a function (lets suppose fsockopen
) but I have no idea how to restore it.
EDIT: Im thinking of just halting and restarting the current running PhP process, that might restore everything
Yes, you'll need to restart. Better to use runkit_function_copy
to clone the original function before you redefine it. Then you can easily restore it as needed.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.