How to disconnect function from use in PHP?

I wanted to know how to disable a function from use in PHP.

thanks

+7
php
source share
3 answers

In the php.ini configuration file, you can use the disable_functions parameter. For example, to disable the symlink() and system() functions, you should use:

 disable_functions = "symlink,system" 
+19
source share

If you can give me more detailed information, for example, what you are trying to do, perhaps we can offer a better solution. To answer your request, if you want to disable the function, this should do:

 override_function('test', '', ''); 

this will override the functional test with a function that does nothing.

0
source share

you can try to override this function to do nothing

http://php.net/manual/en/function.override-function.php

0
source share

All Articles