Avoid infinite loops when DB connection fails.
Previously occured via DocumentParser::messageQuit() and DocumentParser::logEvent()
Allow for connection handle to be any variable type.
mysqli connection handle is an object, not a resource.
document.parser.class.inc.php DBAPI use.
mysqli DBAPI misc bug fixes.
Ensure DBAPI::getRecordCount() works with any type of connection handle (currently object (mysqli) or resource (mysql) ).