我在Window 7 Enterprise上成功安装了以下内容:
httpd-2.4.25-win64-VC14
php-7.1.1-Win32-VC14-x64 (Thread Safe (2017-Jan-18 21:06:35))
php_pthreads-3.1.6-7.0-ts-vc14-x64 from http://windows.php.net/downloads/pecl/releases/pthreads/3.1.6/
phpinfo页面看起来很好并且Thread Safety =启用。
我在php_pthreads-3.1.6-7.0-ts-vc14-x64
包的README.md文件中跟踪了所有教程。
然而,当我执行" php -m"我收到了这个错误:
PHP Warning: PHP Startup: pthreads: Unable to initialize module
Module compiled with module API=20151012
PHP compiled with module API=20160303
These options need to match
in Unknown on line 0
Warning: PHP Startup: pthreads: Unable to initialize module
Module compiled with module API=20151012
PHP compiled with module API=20160303
These options need to match
in Unknown on line 0
[PHP Modules]
bcmath
calendar
Core
ctype
date
... 我之前使用PHP 5.4.33使用过线程但我决定升级到PHP7以支持tlsv1.1和tlsv1.2