对于开发友好的操做系统,咱们首先推荐 MacOS 操做系统,首先 MacOS 是 Unix 环境对开发者很是友好,另外是图形界面很是稳定。
其次若是想用 GNU/Linux 操做系统做为开发环境,推荐使用最新版的 openSUSE/Ubuntu/deepin 等图形用户接口友好的操做系统。php
在开发 zendAPI 项目时候,咱们没有使用 PHP 其余的扩展,因此咱们编译的时候使用的是默认的选项,zendAPI 单元测试须要内置使用 embed SAPI,同时为了不没必要要的麻烦,咱们开启了线程安全选项。安全
MacOS 平台 PHP 编译选项单元测试
--prefix=/usr/local/php-7.1.5 --enable-embed=dylib --enable-maintainer-zts --with-tsrm-pthreads --enable-debug --with-config-file-path=/usr/local/php-7.1.5/etc/ --with-config-file-scan-dir=/usr/local/php-7.1.5/etc/conf.d/
Linux 平台 PHP 编译选项测试
--prefix=/usr/local/php-7.1.5 --enable-embed=shared --enable-maintainer-zts --with-tsrm-pthreads --enable-debug --with-config-file-path=/usr/local/php-7.1.5/etc/ --with-config-file-scan-dir=/usr/local/php-7.1.5/etc/conf.d/