Specify php.ini in phpStorm

孤街浪徒 提交于 2020-01-11 10:27:19

问题


I've set-up my PHP environment with the $PHPRC environment variable to point to the php.ini. Since $PHPRC is set during bash start-up, it's never set for phpStorm. This means phpStorm is using the wrong php.ini for CLI. This is especially anoying since I do a lot of PHPUnit testing.

How can I make phpStorm using the same php.ini? I'd prefer to have a possibility to specifiy the php.ini somehow in phpStorm, but I cannot find such an option.

In case this matters, I'm on OSX using MAMP PRO 2.1.


回答1:


You could do it like this:

1.: Create your run configuration for the test

2.: Add your php.ini path to your command line/interpreter options



来源:https://stackoverflow.com/questions/12796280/specify-php-ini-in-phpstorm

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!