如何在PhpStorm中指定 我正在尝试为内置Web服务器和PHPUnit构建运行配置,但我无法弄清楚如何指定php.ini文件的路径。 p>
我能找到的唯一资源是这个,但确实如此 似乎不适用于当前版本的PhpStorm。 p>
我已将解释器选项设置为 (这与我的另一个问题有关 问道,但我认为,这是一个具体的问题,一个新线程是有道理的。) p>
div> php.ini code>文件的路径? p>
- php-ini C:\ PHP \ php-5.6.7 \ php.ini 代码>。 这是文件的正确路径。 但是,当我得到
phpinfo() code>时,它报告: p>
配置文件(php.ini)路径C:\ Windows
Loaded配置文件 (无)
扫描此目录以获取其他.ini文件(无)
解析附加.ini文件(无)
code> pre>
How do you specify the path to the php.ini
file in PhpStorm?
I am trying to build run configurations for Built-in Web Server and PHPUnit, but I cannot figure out how to specify the path of the php.ini file.
The only resource that I can find is this, but it does not appear to work for current versions of PhpStorm.
I have set the interpreter options to --php-ini C:\PHP\php-5.6.7\php.ini
. This is the correct path to the file. However, when I get the phpinfo()
, it reports:
Configuration File (php.ini) Path C:\Windows
Loaded Configuration File (none)
Scan this dir for additional .ini files (none)
Additional .ini files parsed (none)
(This is related to another question that I asked, but it is specific enough, I think, that a new thread is warranted.)