Reputation: 5332
I'm trying to disable xdebug on "Prod" environment(in php.ini this option is "1") via command:
ini_set('xdebug.remote_enable', '0');
But this is not work, phpinfo show this option value is enabled. What am I doing wrong? According to the documentation it should work http://www.php.net/manual/en/ini.list.php
Upvotes: 3
Views: 2757
Reputation: 3025
You don't have permission to change it from php script. The permission is set to PHP_INI_PERDIR
which means "Entry can be set in php.ini, .htaccess, httpd.conf or .user.ini (since PHP 5.3)". Read more here: http://www.php.net/manual/en/configuration.changes.modes.php
Upvotes: 3