[php-src] Issue #7972: MariaDB version prefix `5.5.5-` is not stripped

From: Date: Wed, 19 Jan 2022 21:37:48 +0000
Subject: [php-src] Issue #7972: MariaDB version prefix `5.5.5-` is not stripped
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-239142@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/7972 Author: mvorisek ### Description The version from SQL (from select version()) should match the version reported by php mysqli/pdo_mysql drivers. 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

« previous php.bugs (#239142) next »