Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ini_set for xdebug.remote_enable not work

Tags:

php

xdebug

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

like image 523
maximkou Avatar asked Sep 25 '26 08:09

maximkou


1 Answers

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

like image 107
Mladen B. Avatar answered Sep 26 '26 22:09

Mladen B.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!