]> granicus.if.org Git - php/commitdiff
Fix version comparison
authorAndrey Hristov <andrey@php.net>
Wed, 19 Jun 2019 13:42:43 +0000 (16:42 +0300)
committerAndrey Hristov <andrey@php.net>
Wed, 19 Jun 2019 13:42:43 +0000 (16:42 +0300)
ext/mysqli/mysqli_api.c

index 206f4b820a695a4059ffeb8d9b58d1f56ad4a86e..9a731f394841181295a83f15e3971bc617dd5c8a 100644 (file)
@@ -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 :