安装此 PECL 扩展相关的信息可在手册中标题为 PECL 扩展的安装章节中找到。更多信息如新的发行版本、下载、源文件、 维护人员信息及变更日志等,都在此处: » http://pecl.php.net/package/pthreads
jason at jason-rush dot com (2013-06-27 20:54:43)
The files are in the format:
php_pthreads-X.XX-Y.Y-ts-vcZZ-x86.zip
where
X.XX is the version of the phpthreads-win32
Y.Y is the base version of PHP that you are running
ZZ is ?? (version of compiler?)
Currently, 0.44 is the latest release of phpthreads-win32, so X.XX = 0.44
If you are running PHP 5.3.13, then Y.Y = 5.3
If you are running PHP 5.5.0, then Y.Y=5.5
etc
php_pthreads-0.44-5.3-ts-vc9-x86.zip
php_pthreads-0.44-5.4-ts-vc9-x86.zip
php_pthreads-0.44-5.5-ts-vc11-x64.zip
php_pthreads-0.44-5.5-ts-vc11-x86.zip
Prerna (2013-06-06 06:57:16)
Hi Jimmy Christensen,
As per the above guidelines, I tried the same procedure on my windows system ( 32 bit ) to install pThreads.
But unfortunately, the threads is still not supported.
Is there any other configuration / requirement to get it installed. My system PHP version is 5.3.13. So i downloaded the package "php_pthreads-0.44-5.4-ts-vc9-x86.zip" from http://windows.php.net/downloads/pecl/releases/pthreads/0.44/ .
Please let me know where i am going wrong?
Thanks in advance.
Jimmy Christensen (2013-05-16 08:55:45)
On Windows the installation is as follows:
Download the pthreads that matches your php version.
I found mine at: http://windows.php.net/downloads/pecl/releases/pthreads/
(I used version 0.44 wich is the newest at the time of writing this, and then downloaded the one for php 5.3 which is the version I am using).
Extract the zip.
Move php_pthreads.dll to the php\ext\ directory.
Move pthreadVC2.dll to the php\ directory.
Open php\php.ini and add
extension=php_pthreads.dll
You are done.