summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2019-06-19 16:42:43 +0300
committerAndrey Hristov <andrey@php.net>2019-06-19 16:42:43 +0300
commit82021ad9df832a99976a48d35119c6284a7831cf (patch)
treee7c535127630f1b9a9d19b85f3f569e1dbcb6c8f
parent31a1c1e67c93de186d8faf368784a8745b23f5b1 (diff)
downloadphp-git-82021ad9df832a99976a48d35119c6284a7831cf.tar.gz
Fix version comparison
-rw-r--r--ext/mysqli/mysqli_api.c2
1 files changed, 1 insertions, 1 deletions
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 :