PHP: pthreads not loading on PHP 8.1

ebdffaop  于 2022-10-22  发布在  PHP
关注(0)|答案(1)|浏览(224)

I'm trying to add pthreads extension on PHP 8.1 TS and it doesn't seem to work, It's sayin that it is not installed while in fact it is.

PHP -v
PHP 8.1.10 (cli) (built: Aug 30 2022 18:05:49) (ZTS Visual C++ 2019 x64)
Copyright (c) The PHP Group
Zend Engine v4.1.10, Copyright (c) Zend Technologies
    with Xdebug v3.1.5, Copyright (c) 2002-2022, by Derick Rethans

Here are the steps I used to install it ->

  1. Get the latest release from here -> https://windows.php.net/downloads/pecl/releases/pthreads/
  2. Extract php_pthreads.dll to /php/ext
  3. Add extension=pthreads to php.ini
  4. Extract pthreadVC2 in to /php
    And when I try to install Laravel Horizon this is what I get ->
Root composer.json requires PHP extension ext-pthreads * but it is missing from your system. Install or enable PHP's pthreads extension.
fcipmucu

fcipmucu1#

you can use phpinfo(); method that will display all php extension you have install and make sure that you installed it in right php.ini file maybe that will fix your problem and you can also restart your localhost

相关问题