Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

difference between mongodb.so and mongo.so

Tags:

php

mongodb

I noticed that the Mongodb driver installation doc shows different extension name for Mongodb driver:

extension=mongo.so; another one shows extension=mongodb.so -- what's the difference?

http://php.net/manual/en/mongodb.installation.manual.php

like image 222
eversun Avatar asked Mar 06 '26 20:03

eversun


1 Answers

mongo.so is the filename for the deprecated Mongo PHP extension, mongodb.so is the filename for the newer Mongodb PHP extension.

Be wary of any guides referencing the extension without the db bit - they are likely referring to the deprecated extension and could well be incorrect.

like image 58
Eborbob Avatar answered Mar 09 '26 10:03

Eborbob



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!