XAMPP Control Panel v3.2.1とそれに付属していたPHP 5.4.16 (cli)をWindows XP SP3 Home Edition (32bit)上で動作させています。
php_pthreads.dllの5.5.4.0は、 C:\xampp\php\ext に設置しました。
pthreadVC2.dllの2.9.1.0は、 C:\xampp\php に設置しました。
C:\xampp\php\php.ini には、extension=php_pthreads.dllを記載しています。
「Microsoft Visual C++ 2010 再頒布可能パッケージ (x86)」「Visual Studio 2012 更新プログラム 4 の Visual C++ 再頒布可能パッケージ」は導入済みです。
よろしくお願いいたします。
こちらを見るとXP非対応のようです。
http://d.hatena.ne.jp/prog_pc/20090526/1243331369
GetTickCount64
GetTickCount関数と同様ですが、64bit符号なし整数を返します。Windows VistaかServer 2008が必要とのことです。
http://windows.php.net/downloads/pecl/releases/pthreads/0.0.45/
VC9版とVC11版があるっぽいのでVC9版にすれば良いのではないでしょうか。
をhttpd-xampp.conf に追加する必要があるとマニュアルページのコメント等にあるようですが。
http://php.net/manual/ja/pthreads.installation.php#113019
http://stackoverflow.com/questions/18819784/not-able-to-install-pthread-on-windows-xampp
LoadFileには何も記載せず、
php_pthreads-0.0.45-5.4-ts-vc9-x86.zip に入っていた、pthreadVC2.dllを、C:\WINDOWS\system32にコピーすると
phpinfo()内にpthreads欄が現れ
Version 0.45-rc と表示されるようになりました。
下手にpthreadVC2.dllの保存先をLoadFileに記載すると、以下のようなエラーが、Apache起動プロセスで発生し、Apache自体が起動できなくなります。
---------------------------
Microsoft Visual C++ Runtime Library
---------------------------
Runtime Error!
Program: c:\xampp\apache\bin\httpd.exe
R6034
An application has made an attempt to load the C runtime library incorrectly.
Please contact the application's support team for more information.
以上です。