Last active
December 11, 2015 10:29
-
-
Save tommoor/4587122 to your computer and use it in GitHub Desktop.
MongoDB persist issue in latest drivers, as this is using the Mongo class rather than MongoClient persist should be ignored rather than throw an exception.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
try { | |
$connection = new Mongo("mongodb://localhost:27017", array('persist' => 'foo')); | |
} catch (MongoConnectionException $e) { | |
print_r($e->getMessage()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment