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 ->
- Get the latest release from here -> https://windows.php.net/downloads/pecl/releases/pthreads/
- Extract php_pthreads.dll to /php/ext
- Add extension=pthreads to php.ini
- 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.