Opened 5 weeks ago

Last modified 5 weeks ago

#421 new defect

PHP module parallel could not be loaded

Reported by: a.labenne Owned by: Jeff McKenna
Priority: major Milestone: 5.0.1 release
Component: MS4W - PHP Version: 5.0.0
Keywords: Cc:
Blocked By: Blocking:

Description

The PHP module parallel could not be loaded.

I have the following error :

PHP Warning: PHP Startup: Unable to load dynamic library 'parallel' (tried: /ms4w/Apache/php/ext/parallel (Le module spécifié est introuvable), /ms4w/Apache/php/ext/php_parallel.dll (Le module spécifié est introuvable)) in Unknown on line 0

The file is present C:\ms4w\Apache\php\ext\php_parallel.dll

Change History (3)

comment:1 by Jeff McKenna, 5 weeks ago

To clarify: MS4W does not distribute the Parallel extension for PHP.

However, the PECL parallel extension can be downloaded pre-compiled from https://pecl.php.net/package/parallel

Once you move the downloaded file php_parallel.dll into C:\ms4w\Apache\php\ext\ (which you already did), and then from that same download archive move the file pthreadVC3.dllinto C:\ms4w\Apache\cgi-bin, then you can try to load the module with:

  php -dextension=C:\ms4w\Apache\php\ext\php_parallel.dll -m

But unfortunately you will get a new error of:

  Warning: PHP Startup: parallel: Unable to initialize module
  Module compiled with build ID=API20230831,TS,VS16
  PHP    compiled with build ID=API20230831,TS,19.41.34120
  These options need to match

Essentially this means that someone compiled that PECL extension with an older version of Visual Studio.

You can contact me directly if you require this extension as a custom build for your organization: info@…

Last edited 5 weeks ago by Jeff McKenna (previous) (diff)

comment:2 by a.labenne, 5 weeks ago

That is exactly what I tried on my end and I gets the same results.

Which version of Visual Studio did you use to build the PHP for MS4W5 ?

If I am correct the VS16 version seems to be Visual Studio 2019. (and VS17 is Visual Studio 2022)

comment:3 by Jeff McKenna, 5 weeks ago

You can check your local ms4w/HISTORY.txt to see what exact compiler versions used for each library, for each MS4W release

Note: See TracTickets for help on using tickets.