Add MongoDB Drivers func ping.
return $string;
}
+ function ping($link) {
+ }
}
class Min_Result {
return $string;
}
+ function ping($link) {
+ $class = 'MongoDB\Driver\Command';
+ $link->executeCommand('admin', new $class(array('ping' => 1)));
+ }
}
class Min_Result {
if ($password != "") {
$options["password"] = "";
try {
- $connection->connect("mongodb://$server", $options);
+ $connection->ping($connection->connect("mongodb://$server", $options));
return lang('Database does not support password.');
} catch (Exception $ex) {
// this is what we want
PostgreSQL 11: Create PRIMARY KEY for auto increment columns
SQLite: Set busy_timeout to 500
MS SQL: Don't truncate comments to 30 chars (PR #376)
+MongoDB: Fix password-less check in the mongo extension (PR #405)
Editor: Cast to string when searching (bug #325)
Re-enable PHP warnings (regression from 4.7.8)