Re: com php-src: Fix version comparison: ext/mysqli/mysqli_api.c
| From: | Christoph M. Becker | Date: | Wed, 19 Jun 2019 14:25:52 +0000 |
| Subject: | Re: com php-src: Fix version comparison: ext/mysqli/mysqli_api.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-106909@lists.php.net to get a copy of this message | ||
On 19.06.2019 at 15:42, Andrey Hristov wrote:
> Commit: 82021ad9df832a99976a48d35119c6284a7831cf
> Author: Andrey Hristov <andrey@php.net> Wed, 19 Jun 2019 16:42:43 +0300
> Parents: 31a1c1e67c93de186d8faf368784a8745b23f5b1
> Branches: PHP-7.3
>
> Link:
> http://git.php.net/?p=php-src.git;a=commitdiff;h=82021ad9df832a99976a48d35119c6284a7831cf
>
> Log:
> Fix version comparison
>
> Changed paths:
> M ext/mysqli/mysqli_api.c
>
>
> Diff:
> diff --git a/ext/mysqli/mysqli_api.c b/ext/mysqli/mysqli_api.c
> index 206f4b8..9a731f3 100644
> --- a/ext/mysqli/mysqli_api.c
> +++ b/ext/mysqli/mysqli_api.c
> @@ -639,7 +639,7 @@ PHP_FUNCTION(mysqli_change_user)
> RETURN_FALSE;
> }
> #if !defined(MYSQLI_USE_MYSQLND) && defined(HAVE_MYSQLI_SET_CHARSET)
> - if (mysql_get_server_version(mysql->mysql) < 501023L) {
> + if (mysql_get_server_version(mysql->mysql) < 50123L) {
> /*
> Request the current charset, or it will be reset to the system one.
> 5.0 doesn't support it. Support added in 5.1.23 by fixing the following bug :
>
Thanks! This commit is currently only in the PHP-7.3 branch, though.
--
Christoph M. Becker