Hi I'm using wampstack-7.2.11-0, which I installed via the Windows installer on Windows 10. I've added the line extension=php_sodium.dll to the php.ini file and restarted the apache server. I have tried several varitaions of the extension resatrting apache each time.
and have tried it without the sodium extension. Ecah time it fails on my test script with the message Fatal error: Uncaught Error: Call to undefined function sodium_crypto_secretbox_keygen().
I have checked that the libsodium.dll is in the C:\Bitnami\wampstack-7.2.11-0\php folder and that php_sodium.dll is in the C:\Bitnami\wampstack-7.2.11-0\php\ext folder.
The apache error log is shows that it tried but failed to find the file and produces the following warning.
PHP Warning: PHP Startup: Unable to load dynamic library 'sodium' (tried: C:/Bitnami/wampstack-7.2.11-0/php/ext\sodium (The specified module could not be found.), C:/Bitnami/wampstack-7.2.11-0/php/ext\php_sodium.dll (The specified module could not be found.)) in Unknown on line 0