exec() appears to be enabled on the server (function_exists(‘exec’) returns true, and command is not listed in ‘disable_functions’ variable) yet we get
Warning: exec() has been disabled for security reasons in …
Any clues on how to detect this before calling?
EDIT:
It was suhosin blacklist and can be checked with following code
if (extension_loaded(‘suhosin’)) {
$suhosin = @ini_get(“suhosin.executor.func.blacklist”);
…
It was suhosin blacklist and can be checked with following code
if (extension_loaded(‘suhosin’)) { $suhosin = @ini_get(“suhosin.executor.func.blacklist”); ..