php8 - Parallel - PHP startup: Unable to load dynamic library
P粉007288593
P粉007288593 2023-12-29 23:50:49
0
1
414

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:

  1. PHP 8.1.7 64-bit thread safety has been downloaded to "D:PHP8TS"

  2. 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 ”

  3. Put the file "pthreadVC2.dll" into "D:PHP8TS"

  4. Put the file "php_parallel.dll" into the "D:PHP8TSext" directory

  5. Put the line "extension=D:PHP8TSextphp_parallel.dll" into php.ini

  6. Put "D:PHP8TSpthreadVC2.dll" into the PATH environment variable

  7. 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).

P粉007288593
P粉007288593

reply all(1)
P粉118698740

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 :(

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!