【发布时间】:2017-06-04 16:58:58
【问题描述】:
我在 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 页面看起来不错,线程安全 = 已启用。
我按照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
【问题讨论】:
-
我有完全相同的错误,但在 Windows 10 和 php 7.1.6 上
标签: multithreading php-7