未使用PHP7建立的PHP Thread类

时间:2019-01-24 10:07:00

标签: php apache pthreads php-7.2

我正在尝试使用PHP脚本启用Thread。我已按照以下步骤启用了PHP线程。

步骤1:-从here下载pthread库并解压缩

步骤2:-复制php_pthreads.dll并粘贴到php\php7.2.14\extphp\php7.2.14\文件夹中。

步骤3:-和pthreadVC2.dll,然后粘贴到apache\apache2.4.37\bin

步骤4:-在{。{1}}中的php.ini中启用线程,并在更新其外观后如下所示。

pache\apache2.4.37\bin

步骤5:-在php.ini中启用位于; Whether or not to enable the dl() function. The dl() function does NOT work ; properly in multithreaded servers, such as IIS or Zeus, and is automatically ; disabled on them. ; http://php.net/enable-dl enable_extension=On extension=php_pthreads.dll

的线程
\php\php7.2.14

步骤6:-我已重新启动所有服务的wampp服务器。

还是,我得到的错误是

; Whether or not to enable the dl() function.  The dl() function does NOT work
; properly in multithreaded servers, such as IIS or Zeus, and is automatically
; disabled on them.
; http://php.net/enable-dl
enable_dl = On
extension=php_pthreads.dll

更新

正如我们所讨论的,我已经更改了DLL文件并重新启动了服务器,并重定向到如下所示的新错误。

 Fatal error: Class 'Thread' not found in {PHP file with location with line number}.

0 个答案:

没有答案