Unable to load the extension
itsrexb opened this issue · 3 comments
Good day!
I'm using the latest XAMPP on windows 10 (64). I'm trying to upgrade from 1.13 to 1.15 in hoping that I can fix the issue I raised here mongodb/laravel-mongodb#2474
Since there's no DLL yet listed on https://pecl.php.net/package/mongodb, I would like to use the attached DLL here https://github.com/mongodb/mongo-php-driver/releases/tag/1.15.0
I copied .dll to my xampp\php\ext folder and restarted everything but still the DLL is not loaded.
Thanks in advance.
Installed MongoDB on C:\Program Files\MongoDB\Server\6.0
Closing. this one works for me https://github.com/mongodb/mongo-php-driver/releases/download/1.15.0/php_mongodb-1.15.0-8.1-ts-x64.zip
For anyone else that may come upon this issue, the following FAQ entry in the PHP library docs may be helpful: Loading an Incompatible DLL on Windows.
The tools/detect-extension.php script in the library repository can also be used to help determine which DLL is appropriate for your PHP runtime.
Also, I just realized that the PHPC and PHPLIB install docs are still pointing Windows users to PECL for downloading DLLs:
- https://www.php.net/manual/en/mongodb.installation.windows.php
- https://www.mongodb.com/docs/php-library/current/tutorial/install-php-library/#installing-the-extension
PECL stopped publishing those earlier this year, so starting with extension version 1.15 we now create our own and attach them to GitHub releases (see: PHPC-2143). I'll make a note to update the docs accordingly.