PHP PECL ext的标准构建过程如下所示:
./configure
make
make test
但是我的环境已通过proc_open
全局禁用disable_functions
,因此make test
命令失败并显示:
+-----------------------------------------------------------+
| ! ERROR ! |
| The test-suite requires that proc_open() is available. |
| Please check if you disabled it in php.ini. |
+-----------------------------------------------------------+
Makefile:134: recipe for target 'test' failed
如何在本地修复此问题而不更改全局php.ini文件?是否可以通过环境变量将一些参数传递给php
可执行文件(或稍后传递给它的configure
)?