msphpsql icon indicating copy to clipboard operation
msphpsql copied to clipboard

PHP Startup: Unable to load dynamic library Unable to initialize module

Open minemint opened this issue 2 years ago • 3 comments

Please check the FAQ (frequently-asked questions) first. If you have other questions or something to report, please address the following (skipping questions might delay our responses):

PHP version
PHP Warning: PHP Startup: Unable to load dynamic library 'php_sqlsrv_81_nts_x64' (tried: c:/wamp64/bin/php/php8.2.0/ext/php_sqlsrv_81_nts_x64 (The specified module could not be found), c:/wamp64/bin/php/php8.2.0/ext/php_php_sqlsrv_81_nts_x64.dll (The specified module could not be found)) in Unknown on line 0

PHP Warning: PHP Startup: Unable to load dynamic library 'php_pdo_sqlsrv_81_nts_x64' (tried: c:/wamp64/bin/php/php8.2.0/ext/php_pdo_sqlsrv_81_nts_x64 (The specified module could not be found), c:/wamp64/bin/php/php8.2.0/ext/php_php_pdo_sqlsrv_81_nts_x64.dll (The specified module could not be found)) in Unknown on line 0

PHP Warning: PHP Startup: sqlsrv: Unable to initialize module

Warning: PHP Startup: pdo_sqlsrv: Unable to initialize module

minemint avatar Feb 17 '23 17:02 minemint

this help image

minemint avatar Feb 17 '23 17:02 minemint

It looks like there is a mismatch, php_php_sqlsrv_81_nts_x64.dll implies that it is linked with 8.1 version of the PHP, while PHP itself is 8.2.0. Can you try using 8.2 versions of the .dlls?

v-makouz avatar Feb 17 '23 21:02 v-makouz

I am pleased to announce that this extension is now compiled for Windows by the PHP Extension Repository site.

You can download the DLLs on the extension page: https://phpext.phptools.online/extension/database/pdo_sqlsrv-96

If you have any questions, I am available to discuss them.

macintoshplus avatar Mar 23 '24 09:03 macintoshplus

Closed due to inactivity

v-makouz avatar Aug 15 '24 21:08 v-makouz