首页 > 其他分享 >Class 'Thread' not found in

Class 'Thread' not found in

时间:2023-12-20 10:23:56浏览次数:26  
标签:bin Thread -- pthreads dll wamp found php Class

Class 'Thread' not found in

Fatal error: Uncaught Error: Class 'Thread' not found in C:\wamp\www\demo_test.php:

解决办法

1)浏览器打开

http://127.0.0.1/?phpinfo=-1

查看info信息 查看VC版本
Example: Info
PHP Version: 5.6.31
Compiler: MSVC11 (Visual C++ 2012)
Architecture: x64

2)下载对应的php_pthreads
http://windows.php.net/downloads/pecl/releases/pthreads/
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\php
5.6**.31*
php.ini**\ --> Add extension=php_pthreads.dll

5)重启 Wamp



欢迎关注公-众-号【TaonyDaily】、留言、评论,一起学习。

公众号

Don’t reinvent the wheel, library code is there to help.

文章来源:刘俊涛的博客


若有帮助到您,欢迎点赞、转发、支持,您的支持是对我坚持最好的肯定(_)

标签:bin,Thread,--,pthreads,dll,wamp,found,php,Class
From: https://www.cnblogs.com/lovebing/p/17915886.html

相关文章

  • UE5打包出现ERROR: Client target not found
    由于需要测试Client连接DS来测试联机同步逻辑,所以需要打个Client的包出来,但是在我设置好Client的打包设置然后运行时,出现了ERROR:Clienttargetnotfound最后找UE官方论坛下的一个帖子:https://forums.unrealengine.com/t/unrealfrontend-client-target-not-found/103129原来......
  • InternImage: Exploring Large-Scale Vision Foundation Models with Deformable Conv
    InternImage:ExploringLarge-ScaleVisionFoundationModelswithDeformableConvolutions*Authors:[[WenhaiWang]],[[JifengDai]],[[ZheChen]],[[ZhenhangHuang]],[[ZhiqiLi]],[[XizhouZhu]],[[XiaoweiHu]],[[TongLu]],[[LeweiLu]],[[HongshengLi]......
  • Scale-Prior Deformable Convolution for Exemplar-Guided Class-Agnostic Counting
    Scale-PriorDeformableConvolutionforExemplar-GuidedClass-AgnosticCounting初读印象comment::(计数用的一个网络)提出了一个标度优先的可变形卷积,将典范的信息,例如标度,整合到计数网络主干中。动机本文考虑的是类别无关的计数,其中计数模型预测由一组查询图像中的少数......
  • 用DE10_NANO_SOC_FB生成dts的时候 提示Component alt_vip_itc_0 of class alt_vip_itc
    当使用DE10_NANO_SOC_FB工程产生dts时提示Componentalt_vip_itc_0ofclassalt_vip_itcisunknown: 如果此时生成了dtb,可以忽略这个提示。  如果没有生成,您可以先在Qsys中把这两个器件disable掉,然后top文件里面把相关的信号也注释掉,然后重新生成soc_system.......
  • class sun.reflect.GeneratedConstructorAccessor2 cannot access its superclass sun
    在启动JFinal程序时报错classsun.reflect.GeneratedConstructorAccessor2cannotaccessitssuperclasssun.reflect.Constructor问题所在因为这个项目的原作者是使用eclipse编写的,idea和eclipse的启动机制不一样,由于eclipse并没有自动实现热加载机制,因此这里我们需要加上......
  • ThreadLocal阅读
    ThreadLocal阅读目录ThreadLocal阅读ThreadLocalMap细究ThreadLocalMapgetEntrysetremoveThreadLocalMap其他的细节ThreadLocalSuppliedThreadLocalTerminatingThreadLocalInheritableThreadLocal首先基于ThreadLocal的简单使用场景,梳理一下下面三个的类之间的关系:ThreadThre......
  • -bash: mpstat: command not found
    linux下检测CPU性能的mpstat命令安装与用法1、安装命令[root@host-192-168-1-165~]# yuminstallsysstat-y 2、检测CPU命令语法$mpstat--h//查看mpstat的语法Usage:mpstat[options][<interval>[<count>]]Optionsare:[-A][-n][-u][-V][-I{S......
  • k8s基于NFS部署storageclass实现pv并标记为一个默认的StorageClass
    架构:一.搭建storageclass1、master和node节点安装nfs服务yum-yinstallnfs-utilsrpcbind2、启动nfs并设为开机自启:systemctlstartnfs&&systemctlenablenfssystemctlstartrpcbind&&systemctlenablerpcbind3、master节点创建共享挂载目录(客户端不需要创建共享目录......
  • python之DataClass
    Python在版本3.7(PEP557)中引入了dataclass。dataclass允许你用更少的代码和更多的开箱即用功能来定义类。下面定义了一个具有两个实例属性name和age的常规Person类: classPerson:def__init__(self,name,age):self.name=nameself......
  • 对ThreadLocal的理解
    1.ThreadLocal概述ThreadLocal是多线程中对于解决线程安全的一个操作类,它会为每个线程都分配一个独立的线程副本从而解决了变量并发访问冲突的问题。ThreadLocal同时实现了线程内的资源共享案例:使用JDBC操作数据库时,会将每一个线程的Connection放入各自的ThreadLocal中,从而保证每......