lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php
private function getMariaDbMysqlVersionNumber(string $versionString) : string
    {
        if (! preg_match(
            '/^(?:5\.5\.5-)?(mariadb-)?(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)/i',
            $versionString,
            $versionParts
        )) {
            throw DBALException::invalidPlatformVersionSpecified(
                $versionString,
                '^(?:5\.5\.5-)?(mariadb-)?<major_version>.<minor_version>.<patch_version>'
            );
        }

        return $versionParts['major'] . '.' . $versionParts['minor'] . '.' . $versionParts['patch'];
    }
private function getMariaDbMysqlVersionNumber(string $versionString) : string
    {
        if (! preg_match(
            '/^(?:5\.5\.5-)?(mariadb-)?(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)/i',
            $versionString,
            $versionParts
        )) {
            throw DBALException::invalidPlatformVersionSpecified(
                $versionString,
                '^(?:5\.5\.5-)?(mariadb-)?<major_version>.<minor_version>.<patch_version>'
            );
        }

        return $versionParts['major'] . '.' . $versionParts['minor'] . '.' . $versionParts['patch'];
    }
private function getMariaDbMysqlVersionNumber ( string $ versionString ) : string { if ( ! preg_match ( '/^(?:5\.5\.5-)?(mariadb-)?(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)/i' , $ versionString , $ versionParts ) ) { throw DBALException :: invalidPlatformVersionSpecified ( $ versionString , '^(?:5\.5\.5-)?(mariadb-)?<major_version>.<minor_version>.<patch_version>' ) ; } return $ versionParts [ 'major' ] . '.' . $ versionParts [ 'minor' ] . '.' . $ versionParts [ 'patch' ] ; }
Detect MariaDB server version, including hack for some mariadb distributions
that starts with the prefix '5.5.5-'

@param string $versionString Version string as returned by mariadb server, i.e. '5.5.5-Mariadb-10.0.8-xenial'

@throws DBALException
Detect MariaDB server version including hack for some mariadb distributions that starts with the prefix 5 . 5 . 5 -