无法在Windows Xampp上安装pThread [英] Not able to install pThread on Windows Xampp
本文介绍了无法在Windows Xampp上安装pThread的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
更新:看来我在这里没有做错任何事情.当我执行一个线程示例时,它可以正常工作.我不确定,为什么启动Apache时会出现这些错误.
Update: Looks like I am not doing anything wrong here. When I execute a thread example, it works fine. I am not sure, then why am I getting those errors when I start Apache.
有什么想法吗?
我试图按以下步骤在Xampp(Windows 7)上安装pThread:
I am trying to install pThread on Xampp (Windows 7) as follows:
-
我的PHP版本信息:5.4.7 VC9 x86
My PHP version information: 5.4.7 VC9 x86
我已经下载了php_pthreads-0.0.45-5.4-ts-vc9-x86.zip
重新启动Apache服务器并收到以下错误:
Restarted Apache server and received following error:
关于为何无法正常工作的任何建议?
Any suggestions on why this is not working?
推荐答案
这是我所做的并为我工作的内容:
Here is what I did and works for me:
- 已使用phpinfo()检查PHP的编译器版本.我的,你们俩都是VC9
- 下载并安装与您的编译器版本匹配的正确的Pthread软件包.我下载了"php_pthreads-0.0.45-5.4-ts-vc9-x86.zip"文件.确保您的操作系统版本也正确(32位或64位).
- 提取临时文件夹中的Zip文件
- 将php_pthreads.dll复制到"bin \ php \ ext \"文件夹中
- 将pthreadVC2.dll复制到'bin \ php \'文件夹中
- 将pthreadVC2.dll复制到'bin \ apache \ bin'文件夹中
- 将pthreadVC2.dll复制到"C:\ windows \ system32"文件夹中
- 打开php \ php.ini,并在文件末尾添加不带引号的"extension = php_pthreads.dll"
- 重新启动服务器,您不会收到任何错误消息.
祝你好运
这篇关于无法在Windows Xampp上安装pThread的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文