Both XenForo_Db::_execQuery and XenForo_Debug::getDatabaseDebugInfo use get_class rather than instanceof. This means classes which extend Zend_Db_Adapter_Mysqli which have the same capabilities as Zend_Db_Adapter_Mysqli, are not treated the same.