[php-src] Issue #7932: MariaDB version prefix `5.5.5-` is not stripped
| From: | mvorisek | Date: | Tue, 11 Jan 2022 16:28:53 +0000 |
| Subject: | [php-src] Issue #7932: MariaDB version prefix `5.5.5-` is not stripped | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-238971@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/7932
Author: mvorisek
### Description
The following code:
```
var_dump(...->expr('select version()')->getOne()); // raw version from SQL
var_dump(...->getWrappedConnection()->getServerVersion()); // version from DBAL/mysqli
```
Resulted in this output:
```
string(35) "10.6.5-MariaDB-1:10.6.5+maria~focal"
string(41) "5.5.5-10.6.5-MariaDB-1:10.6.5+maria~focal"
```
But I expected this output instead:
```
string(35) "10.6.5-MariaDB-1:10.6.5+maria~focal"
string(41) "10.6.5-MariaDB-1:10.6.5+maria~focal"
```
### PHP Version
8.0
### Operating System
any