Skip to content

Commit 82021ad

Browse files
committed
Fix version comparison
1 parent 31a1c1e commit 82021ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/mysqli/mysqli_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ PHP_FUNCTION(mysqli_change_user)
639639
RETURN_FALSE;
640640
}
641641
#if !defined(MYSQLI_USE_MYSQLND) && defined(HAVE_MYSQLI_SET_CHARSET)
642-
if (mysql_get_server_version(mysql->mysql) < 501023L) {
642+
if (mysql_get_server_version(mysql->mysql) < 50123L) {
643643
/*
644644
Request the current charset, or it will be reset to the system one.
645645
5.0 doesn't support it. Support added in 5.1.23 by fixing the following bug :

0 commit comments

Comments
 (0)