diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c index c872fd38ef8..0604048545c 100644 --- a/ext/mysql/php_mysql.c +++ b/ext/mysql/php_mysql.c @@ -473,10 +473,10 @@ PHP_MSHUTDOWN_FUNCTION(mysql) #ifdef PHP_WIN32 unsigned long client_ver = mysql_get_client_version(); /* - Can't call mysql_server_end() multiple times prior to 5.0.42 on Windows. + Can't call mysql_server_end() multiple times prior to 5.0.46 on Windows. PHP bug#41350 MySQL bug#25621 */ - if ((client_ver >= 50042 && client_ver < 50100) || client_ver > 50122) { + if ((client_ver >= 50046 && client_ver < 50100) || client_ver > 50122) { mysql_server_end(); } #else diff --git a/ext/mysqli/mysqli.c b/ext/mysqli/mysqli.c index d6505638448..f5911eba77d 100644 --- a/ext/mysqli/mysqli.c +++ b/ext/mysqli/mysqli.c @@ -802,10 +802,10 @@ PHP_MSHUTDOWN_FUNCTION(mysqli) #ifdef PHP_WIN32 unsigned long client_ver = mysql_get_client_version(); /* - Can't call mysql_server_end() multiple times prior to 5.0.42 on Windows. + Can't call mysql_server_end() multiple times prior to 5.0.46 on Windows. PHP bug#41350 MySQL bug#25621 */ - if ((client_ver >= 50042 && client_ver < 50100) || client_ver > 50122) { + if ((client_ver >= 50046 && client_ver < 50100) || client_ver > 50122) { mysql_server_end(); } #else