I can't get the php_parallel (https://www.php.net/manual/en/parallel.setup.php) extension to work properly.
This is what I did:
PHP 8.1.7 64-bit thread safety has been downloaded to "D:PHP8TS"
Download Parallel 1.1.4 from "https://windows.php.net/downloads/pecl/releases/parallel/1.1.4/php_parallel-1.1.4-7.4-ts-vc15-x64.zip ”
Put the file "pthreadVC2.dll" into "D:PHP8TS"
Put the file "php_parallel.dll" into the "D:PHP8TSext" directory
Put the line "extension=D:PHP8TSextphp_parallel.dll" into php.ini
Put "D:PHP8TSpthreadVC2.dll" into the PATH environment variable
Execute "D:PHP8TSphp.exe -v", the result is:
PHP Warning: PHP Startup: Unable to load dynamic library 'D:PHP8TS ext php_parallel.dll' (tried: D:PHP8TS ext php_parallel.dll (specified module not found), C:phpextphp_D:PHP8TSextphp_parallel.dll. dll (specified module not found)) unknown at line 0
Warning: PHP startup: Unable to load dynamic library 'D:PHP8TSextphp_parallel.dll' (Tried: D:PHP8TSextphp_parallel.dll (The specified module could not be found), C:phpextphp_D:PHP8TSextphp_parallel.dll.dll (The specified module could not be found) module)) Unknown on line 0 PHP 8.1.7 (cli) (Build: Jun 7, 2022 21:45:53) (ZTS Visual C 2019 x64) Copyright (c) PHP Group Zend Engine v4.1.7, Copyright (c) Zend Technologies
What did i do wrong? Has anyone successfully run this extension on PHP 8.1.7?
This way I successfully added other PHP extensions (such as pdo_sqlite).
Parallel 1.1.4 works with PHP 7.2, 7.3 and 7.4. Unfortunately, you can't use it on PHP8.0.
You need to use Parallel 1.2.1. So far I haven't found a compiled Windows binary for this version :(