[php-src] Issue #7932: MariaDB version prefix `5.5.5-` is not stripped
| From: | mvorisek | Date: | Tue, 11 Jan 2022 18:26:42 +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-238975@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/7932
Comment Author: mvorisek
mysqli_get_server_version() is fixed (in php-src) - is there any support to get the
numerical version also from PDO?
> We follow what the C API does in this case, which is to return the string verbatim.
The stripping is actually official for MariaDB client, see one related MariaDB issue https://jira.mariadb.org/browse/MDEV-4575 . As
the prefixing is known and introduced only as a fix for replication protocol, it is safe to be
removed also for mysqlnd.