Both methods check that length of this->_getStringInfo(SQL_DRIVER_ODBC_VER); is exactly 5 characters.
Some drivers may return build information appended, thus version string length is more than 5 characters.
Better to check that:
1) for getDriverMajorVersion() length is more or equal to 2
2) for getDriverMinorVersion() length is more or equal to 5