#109237getPlatformServerVersion() ignores configured serverVersion parameter
Description
When a `serverVersion` parameter is configured in the DBAL connection settings (e.g. in `$GLOBALS[‘TYPO3_CONF_VARS’][‘DB’][‘Connections’][‘Default’][‘serverVersion’]`), Doctrine DBAL correctly uses this value for platform detection in `getDatabasePlatform()`.
However, `Connection::getPlatformServerVersion()` in `typo3/cms-core` always calls `$this->getServerVersion()`, which queries the actual server connection (via `mysqli::$server_info`). This means the version displayed in the TYPO3 backend (System Information toolbar, Maintenance module) reflects the server’s handshake value — not the configured one.
This is a problem when using connection proxies like ProxySQL, which report a different `server_version` in the MySQL handshake packet than the actual backend database. Users configure `serverVersion` specifically to override the proxy’s reported version, but the UI still shows the wrong value.
**Steps to reproduce:**
1. Configure a database connection through ProxySQL (or any MySQL proxy)
2. Set `serverVersion` in the connection config to the real MariaDB version (e.g. `10.11.16-MariaDB-ubu2204`)
3. Open the Maintenance module → “Analyze Database Structure“
4. The schema analysis works correctly (uses `serverVersion`), but the displayed database version shows the proxy’s version (e.g. `10.6.0`) instead of the configured `10.11.16-MariaDB-ubu2204`
**Expected behavior:**
`getPlatformServerVersion()` should prefer the configured `serverVersion` parameter over the handshake value, consistent with how `getDatabasePlatform()` already works.
**Fix:**
The fix is a one-line change in `Connection::getPlatformServerVersion()`:
// Before:
$version = trim($this->getServerVersion());
// After:
$params = $this->getParams();
$version = trim($params['serverVersion'] ?? $this->getServerVersion());Reviews 2
History 29
-
Gerrit Code Review pushed patch set 1 for main to change 93181 status
NewUnder Review <span data-processor="relativetime" data-value="2026-03-13T15:28:08+00:00" > 03/13/26, 15:28 </span> -
Gerrit Code Review pushed patch set 2 for main to change 93181 <span data-processor="relativetime" data-value="2026-03-13T21:22:10+00:00" > 03/13/26, 21:22 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 93181 <span data-processor="relativetime" data-value="2026-04-11T11:36:13+00:00" > 04/11/26, 11:36 </span>
-
Gerrit Code Review pushed patch set 4 for main to change 93181 <span data-processor="relativetime" data-value="2026-04-11T12:25:00+00:00" > 04/11/26, 12:25 </span>
-
Gerrit Code Review pushed patch set 5 for main to change 93181 <span data-processor="relativetime" data-value="2026-04-11T17:52:23+00:00" > 04/11/26, 17:52 </span>
-
Gerrit Code Review pushed patch set 6 for main to change 93181 <span data-processor="relativetime" data-value="2026-04-11T17:57:16+00:00" > 04/11/26, 17:57 </span>
-
Gerrit Code Review pushed patch set 1 for 13.4 to change 93629 <span data-processor="relativetime" data-value="2026-04-11T18:09:46+00:00" > 04/11/26, 18:09 </span>
-
Rico Sonntag commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-04-11T18:25:10+00:00" > 04/11/26, 18:25 </span> -
Benni Mack changed status
ResolvedClosed <span data-processor="relativetime" data-value="2026-04-21T11:30:31+00:00" > 04/21/26, 11:30 </span>
Applied in changeset commit:acb401d5d2839a58a5fc14fc992c50d2478acde9.