Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 148 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 148 Revision 621
Zeile 39... Zeile 39...
39
        }
39
        }
Zeile 40... Zeile 40...
40
 
40
 
41
        if (! $mariadb) {
41
        if (! $mariadb) {
42
            $oracleMysqlVersion = $this->getOracleMysqlVersionNumber($version);
42
            $oracleMysqlVersion = $this->getOracleMysqlVersionNumber($version);
-
 
43
            if (version_compare($oracleMysqlVersion, '8', '>=')) {
-
 
44
                if (! version_compare($version, '8.0.0', '>=')) {
-
 
45
                    Deprecation::trigger(
-
 
46
                        'doctrine/orm',
-
 
47
                        'https://github.com/doctrine/dbal/pull/5779',
-
 
48
                        'Version detection logic for MySQL will change in DBAL 4. '
-
 
49
                            . 'Please specify the version as the server reports it, e.g. "8.0.31" instead of "8".',
-
 
50
                    );
-
 
51
                }
43
            if (version_compare($oracleMysqlVersion, '8', '>=')) {
52
 
44
                return new MySQL80Platform();
53
                return new MySQL80Platform();
Zeile 45... Zeile 54...
45
            }
54
            }
-
 
55
 
-
 
56
            if (version_compare($oracleMysqlVersion, '5.7.9', '>=')) {
-
 
57
                if (! version_compare($version, '5.7.9', '>=')) {
-
 
58
                    Deprecation::trigger(
-
 
59
                        'doctrine/orm',
-
 
60
                        'https://github.com/doctrine/dbal/pull/5779',
-
 
61
                        'Version detection logic for MySQL will change in DBAL 4. '
-
 
62
                        . 'Please specify the version as the server reports it, e.g. "5.7.40" instead of "5.7".',
-
 
63
                    );
46
 
64
                }
47
            if (version_compare($oracleMysqlVersion, '5.7.9', '>=')) {
65
 
48
                return new MySQL57Platform();
66
                return new MySQL57Platform();
Zeile 49... Zeile 67...
49
            }
67
            }
Zeile 101... Zeile 119...
101
     *
119
     *
102
     * @throws Exception
120
     * @throws Exception
103
     */
121
     */
104
    private function getMariaDbMysqlVersionNumber(string $versionString): string
122
    private function getMariaDbMysqlVersionNumber(string $versionString): string
105
    {
123
    {
-
 
124
        if (stripos($versionString, 'MariaDB') === 0) {
-
 
125
            Deprecation::trigger(
-
 
126
                'doctrine/orm',
-
 
127
                'https://github.com/doctrine/dbal/pull/5779',
-
 
128
                'Version detection logic for MySQL will change in DBAL 4. '
-
 
129
                    . 'Please specify the version as the server reports it, '
-
 
130
                    . 'e.g. "10.9.3-MariaDB" instead of "mariadb-10.9".',
-
 
131
            );
-
 
132
        }
-
 
133
 
106
        if (
134
        if (
107
            preg_match(
135
            preg_match(
108
                '/^(?:5\.5\.5-)?(mariadb-)?(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)/i',
136
                '/^(?:5\.5\.5-)?(mariadb-)?(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)/i',
109
                $versionString,
137
                $versionString,
110
                $versionParts,
138
                $versionParts,