php_admin_value disable_functions不起作用

Eva*_*Eva 4 php security apache2

我正在尝试在我的apache2配置文件中禁用函数,但由于某种原因它无法正常工作.我已经验证了其他php_admin_value设置正在运行,但它只是忽略了disable_functions

这就是我所拥有的:

<Directory "/var/www/testdir/*">

php_admin_value open_basedir "/var/www/testdir"
php_admin_value disable_functions "exec,shell_exec"

</Directory>
Run Code Online (Sandbox Code Playgroud)

open_basedir管理员值正在按预期工作(不能包含'../something'),但是,它仍然会执行ls -a ..或让我exec('ls -a ..', $output); echo $output;仿佛无法设置disable_functions标志.

有想法该怎么解决这个吗?

Gum*_*mbo 7

disable_functions只能在php.ini文件中更改:

Name                Default Changeable          Changelog
disable_functions   ""      PHP_INI_SYSTEM only Available since PHP 4.0.1.
Run Code Online (Sandbox Code Playgroud)

但是,php_admin_value不能在.htaccess文件中使用.