I have disabled a few functions using disable_functions
in php.ini. On calling these functions I can see in my logs that a warning is generated like:
PHP Warning: somefunction() has been disabled for security reasons in file
However the rest of the file is executed normally.
Is there any way to block the execution (or exit code) once a disabled_function
is called. Something like a callback function maybe?
Or else is it possible to turn that Warning into an Error?
PHP version PHP 5.5.12-2ubuntu4.3