Opened 3 weeks ago

Last modified 3 weeks ago

#428 new enhancement

Include PHP Sodium (php_sodium.dll)

Reported by: TC Haddad Owned by: Jeff McKenna
Priority: enhancement Milestone: 5.0.1 release
Component: MS4W - PHP Version: 5.0.0
Keywords: Cc: TC Haddad
Blocked By: Blocking:

Description

I tried enabling PHP Sodium in php.ini, and got an error in the logs:

PHP Warning: PHP Startup: Unable to load dynamic library 'sodium' (tried: /ms4w/Apache/php/ext/sodium (The specified module could not be found), /ms4w/Apache/php/ext/php_sodium.dll (The specified module could not be found)) in Unknown on line 0: D:/ms4w/Apache/cgi-bin/php-cgi.exe

More about PHP Sodium here:
https://www.php.net/manual/en/sodium.installation.php

Change History (2)

comment:1 by TC Haddad, 3 weeks ago

Solved this with the following steps:

Get the relevant version of php_sodium.dll here:
https://windows.php.net/downloads/releases/php-8.2.25-Win32-vs16-x86.zip

Get the relevant version of libsodium.dll here:
https://download.libsodium.org/libsodium/releases/libsodium-1.0.20-msvc.zip

(this was on an temp server running MS4W5 RC from October 2023, so it was using PHP 8.2.x)

comment:2 by TC Haddad, 3 weeks ago

The above won't work for MS4W5 (Sept, 2024) due to switch to Visual Studio 2022, which is ahead of where PHP 8.3.x is @ https://windows.php.net. So we'd need our own php_sodium.dll for this version of MS4W5.

Things will be back in sync when next MS4W5 has PHP 8.4

Last edited 3 weeks ago by TC Haddad (previous) (diff)
Note: See TracTickets for help on using tickets.