Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate config added in php.ini #23

Open
shivapoudel opened this issue Jul 4, 2021 · 2 comments
Open

Duplicate config added in php.ini #23

shivapoudel opened this issue Jul 4, 2021 · 2 comments

Comments

@shivapoudel
Copy link

shivapoudel commented Jul 4, 2021

If I have deleted .vscode folder and again re-added XDebug configuration to VSCode then the config input in the php.ini is added multiple times... For my case I have tried to click the addon setting link overall 5time and if I delete the code and start the site still 5 times this is repeated:

[localbyflywheel]
xdebug.scream = 1
xdebug.show_local_vars = 1
xdebug.remote_autostart = 1
xdebug.remote_connect_back = 1
[localbyflywheel]
xdebug.scream = 1
xdebug.show_local_vars = 1
xdebug.remote_autostart = 1
xdebug.remote_connect_back = 1
[localbyflywheel]
xdebug.scream = 1
xdebug.show_local_vars = 1
xdebug.remote_autostart = 1
xdebug.remote_connect_back = 1
[localbyflywheel]
xdebug.scream = 1
xdebug.show_local_vars = 1
xdebug.remote_autostart = 1
xdebug.remote_connect_back = 1
[localbyflywheel]
xdebug.scream = 1
xdebug.show_local_vars = 1
xdebug.remote_autostart = 1
xdebug.remote_connect_back = 1

Now again if I switch to PHP 8.0 and come back to 7.4.1 all the localbyflywheel config in php.init are lost. I have to again click the button but my .vscode folder already exists. Need to give control to previous configurations. I have found this solution to fix the 5times adding config in php.ini by switching to next PHP version and being back to previous and clicking add config btn :D

@shivapoudel
Copy link
Author

@brandondove While I deactivate this addon and without switching PHP version, I started the site and amazed still the above configuration gets add up in the php.ini, was it cached somewhere??

@bgturner
Copy link
Contributor

Hey @shivapoudel -- I know this is an old issue, but the reason that changes to the php.ini don't persist is that they need to be made to the php.ini.hbs file for the site. That file is located:

~/Local Sites/<site-name>/conf/php/php.ini.hbs

Once those changes are made, restart the site in Local so that the changes are compiled down and loaded for the php process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants