lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php
private function getOracleMysqlVersionNumber(string $versionString) : string
    {
        if (! preg_match(
            '/^(?P<major>\d+)(?:\.(?P<minor>\d+)(?:\.(?P<patch>\d+))?)?/',
            $versionString,
            $versionParts
        )) {
            throw DBALException::invalidPlatformVersionSpecified(
                $versionString,
                '<major_version>.<minor_version>.<patch_version>'
            );
        }
        $majorVersion = $versionParts['major'];
        $minorVersion = $versionParts['minor'] ?? 0;
        $patchVersion = $versionParts['patch'] ?? null;

        if ($majorVersion === '5' && $minorVersion === '7' && $patchVersion === null) {
            $patchVersion = '9';
        }

        return $majorVersion . '.' . $minorVersion . '.' . $patchVersion;
    }
private function getOracleMysqlVersionNumber(string $versionString) : string
    {
        if (! preg_match(
            '/^(?P<major>\d+)(?:\.(?P<minor>\d+)(?:\.(?P<patch>\d+))?)?/',
            $versionString,
            $versionParts
        )) {
            throw DBALException::invalidPlatformVersionSpecified(
                $versionString,
                '<major_version>.<minor_version>.<patch_version>'
            );
        }
        $majorVersion = $versionParts['major'];
        $minorVersion = $versionParts['minor'] ?? 0;
        $patchVersion = $versionParts['patch'] ?? null;

        if ($majorVersion === '5' && $minorVersion === '7' && $patchVersion === null) {
            $patchVersion = '9';
        }

        return $majorVersion . '.' . $minorVersion . '.' . $patchVersion;
    }
private function getOracleMysqlVersionNumber ( string $ versionString ) : string { if ( ! preg_match ( '/^(?P<major>\d+)(?:\.(?P<minor>\d+)(?:\.(?P<patch>\d+))?)?/' , $ versionString , $ versionParts ) ) { throw DBALException :: invalidPlatformVersionSpecified ( $ versionString , '<major_version>.<minor_version>.<patch_version>' ) ; } $ majorVersion = $ versionParts [ 'major' ] ; $ minorVersion = $ versionParts [ 'minor' ] ?? 0 ; $ patchVersion = $ versionParts [ 'patch' ] ?? null ; if ( $ majorVersion === '5' && $ minorVersion === '7' && $ patchVersion === null ) { $ patchVersion = '9' ; } return $ majorVersion . '.' . $ minorVersion . '.' . $ patchVersion ; }
Get a normalized 'version number' from the server string
returned by Oracle MySQL servers.

@param string $versionString Version string returned by the driver, i.e. '5.7.10'

@throws DBALException
Get a normalized version number from the server string returned by Oracle MySQL servers .