From 82021ad9df832a99976a48d35119c6284a7831cf Mon Sep 17 00:00:00 2001 From: Andrey Hristov Date: Wed, 19 Jun 2019 16:42:43 +0300 Subject: Fix version comparison --- ext/mysqli/mysqli_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/mysqli/mysqli_api.c') diff --git a/ext/mysqli/mysqli_api.c b/ext/mysqli/mysqli_api.c index 206f4b820a..9a731f3948 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 : -- cgit v1.2.1