2017-01-19 13 views
2

にモジュールpthreadsを初期化することができません私は7 Enterpriseは、次のウィンドウに成功してインストール:PHP7スタートアップ:pthreadsの:Windows 7の

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のサポート

+0

私は正確に同じエラーを持っているが、Windows 10およびPHP 7.1.6 –

答えて

0

この理由は、pthread dllがインストールされているphpのバージョンと互換性がないためです。

github issue discussionによると、最後のリリースphp_pthreads-3.1.6-7.0-ts-vc14-x64は、ZTSがバージョンで壊れているため、Windowsでphp 7.0または7.1をサポートしません。

Windows上でpthreadを操作したい場合は、PHP 5.6に下げるか、PHP 7.2とphp_pthreadsの次のリリースを待つ必要があります。

別のオプションはphp_pthreadsのこのベータ版を使用することです: https://github.com/SirSnyder/pthreads/releases/tag/v3.1.7-beta.1

+0

ベータ版に。 pthreads.dllファイルはありません。 – Developer