mirror of
https://github.com/php/php-src.git
synced 2026-04-26 09:28:21 +02:00
Bug fixed in MySQL 5.0.46
This commit is contained in:
@@ -470,10 +470,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
|
||||
|
||||
+2
-2
@@ -800,10 +800,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
|
||||
|
||||
Reference in New Issue
Block a user