Class 'Thread' not found in
Fatal error: Uncaught Error: Class 'Thread' not found in C:\wamp\www\demo_test.php:
解决办法
1)浏览器打开
查看info信息 查看VC版本 Example: Info PHP Version: 5.6.31 Compiler: MSVC11 (Visual C++ 2012) Architecture: x64
**2)下载对应的php_pthreads windows.php.net/downloads/p… Example 2.0.9 file Compiler:VC11 Architecture:x64 php_pthreads-2.0.9-5.6-ts-vc11-x64.zip download.
3)解压php_pthreads.dll and pthreadVC2.dll. wamp\bin\php\php5.6.31\ext\ --> copy php_pthreads.dll wamp\bin\php\php5.6.31\ --> copy pthreadVC2.dll wamp\bin\apache\apache2.4.27\bin --> copy pthreadVC2.dll
4)更新php.ini wamp\bin\apache\apache2.4.27\bin*php.ini**\ --> Add extension=php_pthreads.dll wamp\bin\php\php5.6.31*php.ini**\ --> Add extension=php_pthreads.dll
5)重启 Wamp
欢迎关注公-众-号【TaonyDaily】、留言、评论,一起学习。
Don’t reinvent the wheel, library code is there to help.
文章来源:刘俊涛的博客
若有帮助到您,欢迎点赞、转发、支持,您的支持是对我坚持最好的肯定(^_^)