【发布时间】:2017-07-15 05:20:51
【问题描述】:
我已经通过以下http://php.net/manual/en/pthreads.installation.php 安装了 pthreads 从 http://windows.php.net/downloads/pecl/releases/pthreads/
我的 php 信息:- phpinfo();
PHP 版本 5.6.30 编译器:MSVC11 (Visual C++ 2012) 架构:x86 线程安全:启用
但错误仍然存在..
php -m 输出#
php -m PHP 警告:PHP 启动:pthreads:无法编译模块 使用模块 API=20121212 使用模块 API=20131226 编译的 PHP 这些 选项需要在第 0 行的未知中匹配警告:PHP 启动: pthreads:无法初始化使用模块 API=20121212 PHP 编译的模块 使用模块 API=20131226 编译这些选项需要在 第 0 行未知 [PHP 模块] bcmath bz2 calendar Core ctype curl date dom ereg exif fileinfo filter ftp gd gettext hash iconv json libxml mbstring mcrypt mhash mysql mysqli mysqlnd odbc
【问题讨论】:
-
您确定,您已将
extension=php_pthreads.dll添加到正确的php.ini 中吗? -
你的
php -m输出是什么? -
Thread Safety: enabled与 pthreads 扩展无关。 -
是的,我已经正确添加了 extension=php_pthreads.dll..
-
这里是 php -m output# php -m PHP Warning: PHP Startup: pthreads: Unable t Module compiled with module API=20121212 PHP compiled with module API=20131226 这些选项需要在 Unknown 上匹配第 0 行警告:PHP 启动:pthreads:无法 ini 使用模块 API=20121212 编译的模块 PHP 使用模块 API=20131226 编译的这些选项需要在第 0 行 [PHP 模块] bcmath bz2 calendar Core ctype curl date dom ereg exif 中的 Unknown 中匹配fileinfo filter ftp gd gettext hash iconv json libxml mbstring mcrypt mhash mysql mysqli mysqlnd odbc