--- database.mysql.inc.orig	2005-09-10 16:57:05.027193472 +0800
+++ database.mysql.inc	2005-09-10 16:45:22.256030928 +0800
@@ -36,7 +36,11 @@
   //   (matched) rows, not the number of affected rows.
 
   
+  if (version_compare(phpversion(), '4.3', '<')) {
+    $connection = @mysql_connect($url['host'], $url['user'], $url['pass'], TRUE);
+  } else {
   $connection = @mysql_connect($url['host'], $url['user'], $url['pass'], TRUE, 2);
+  }
   if (!$connection) {
     drupal_maintenance_theme();
     drupal_set_title('Unable to connect to database server');
