libmongoc

MongoDB Exception: Server reports wire version 0, but version of libmongoc requires at least 3

℡╲_俬逩灬. 提交于 2019-12-06 03:11:18
问题 Fatal error: Uncaught MongoDB\Driver\Exception\ConnectionException: Server at localhost:27017 reports wire version 0, but this version of libmongoc requires at least 3 (MongoDB 3.0) I have PHP 7.0.13, MAMP and MongoDB. The MongoDB extension for PHP has been installed. I have the following: <?php ini_set('display_errors', 'On'); require 'vendor/autoload.php'; var_dump(extension_loaded('mongodb')); echo phpversion('mongodb')."\n"; $m = new MongoDB\Driver\Manager("mongodb://localhost:27017"); //