Bug fixed in 5.0.46

This commit is contained in:
Andrey Hristov 2008-03-08 15:00:50 +00:00
parent 704cab59ee
commit 64aad3d210
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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