【问题标题】:php7.2.11 - pthreads-unable-to-initialize-module-in-windows-10 [duplicate]php7.2.11 - pthreads-unable-to-initialize-module-in-windows-10 [重复]
【发布时间】:2019-05-16 17:31:46
【问题描述】:

我正在尝试测试 pThreads,但我无法让它工作......

我在 SOf enter link description here 中愚弄了几个教程和问题

我的配置是:

PHP:php-7.2.11-Win32-VC15-x64 并下载了las phpThreads php_pthreads-3.1.6-7.0-ts-vc14-x64.zip

我从命令行执行 php,所以我不需要在 apache 中添加任何内容(我正在使用 laragon!)

错误是:

Warning: PHP Startup: Unable to load dynamic library 'php_pthreads.dll' (tried: C:/laragon/bin/php/php-7.2.11-Win32-VC15-x64/ext\php_pthreads.dll (No se encontr el proceso especificado.), C:/laragon/bin/php/php-7.2.11-Win32-VC15-x64/ext\php_php_pthreads.dll.dll (No se puede encontrar el mdulo especificado.)) in Unknown on line 0

Fatal error: Class 'Thread' not found in 
C:\laragon\www\mkte_booking_v2\web\SimpleWebRequest.php on line 4

那么,如果我做对了,也许我必须降级到 php 5.3 ?

windows 上的 pThreads 没有活动,因为:

2/13/2016  9:48 AM        <dir> 3.1.6

有什么建议吗?

最好的问候

【问题讨论】:

  • 我认为你的路径中有错字C:/laragon/bin/php/php-7.2.11-Win32-VC15-x64/ext\php_pthreads.dll

标签: php pthreads


【解决方案1】:

根据您所写的内容,看起来可能存在一些问题。

第一种可能是PHP找不到php_pthreads.dll,如错误提示,需要修改你的include路径或将dll复制到你的/ext文件夹中。

可能性 2,更有可能是您尝试在 PHP 7.2 VC15 中加载 PHP 7.0 VC14 模块。

为 7.2 尝试 pthreads 3.1.6 VC15 -- https://windows.php.net/downloads/pecl/snaps/pthreads/3.1.6/

【讨论】:

    猜你喜欢
    • 2022-12-26
    • 2022-12-27
    • 2017-09-30
    • 2022-12-02
    • 2019-11-08
    • 1970-01-01
    • 2012-02-06
    • 2014-07-29
    • 1970-01-01
    相关资源
    最近更新 更多