2

我正在尝试通过以下命令禁用“Prod”环境中的 xdebug(在 php.ini 中此选项为“1”):

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

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

4

1 回答 1

2

您无权从 php 脚本更改它。权限设置为PHP_INI_PERDIREntry can be set in php.ini, .htaccess, httpd.conf or .user.ini (since PHP 5.3)”。在这里阅读更多:http ://www.php.net/manual/en/configuration.changes.modes.php

于 2013-06-10T10:30:56.093 回答