用于xdebug的Ini_set.Remote_enable不工作


ini_set for xdebug.remote_enable not work

我试图禁用xdebug在"Prod"环境(在php.ini这个选项是"1")通过命令:

ini_set('xdebug.remote_enable', '0');

但是这是不工作的,phpinfo显示这个选项值是启用的。我做错了什么?根据文档,它应该工作http://www.php.net/manual/en/ini.list.php

您没有权限从php脚本更改它。权限设置为PHP_INI_PERDIR,这意味着"条目可以在PHP .ini, .htaccess, httpd.conf或.user.ini (PHP 5.3起)中设置"。阅读更多:http://www.php.net/manual/en/configuration.changes.modes.php