3

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

1 Answer 1

5

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.