Index: includes/common.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/common.inc,v
retrieving revision 1.602
diff -u -p -r1.602 common.inc
--- includes/common.inc	15 Dec 2006 07:47:08 -0000	1.602
+++ includes/common.inc	16 Dec 2006 19:04:23 -0000
@@ -1428,6 +1428,8 @@ function drupal_get_css($css = NULL) {
   $preprocess_css = variable_get('preprocess_css', FALSE);
   $directory = file_directory_path();
   $is_writable = is_dir($directory) && is_writable($directory) && (variable_get('file_downloads', FILE_DOWNLOADS_PUBLIC) == FILE_DOWNLOADS_PUBLIC);
+  $no_module_preprocess = '';
+  $no_theme_preprocess = '';
 
   foreach ($css as $media => $types) {
     // If CSS preprocessing is off, we still need to output the styles.
Index: includes/form.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/form.inc,v
retrieving revision 1.166
diff -u -p -r1.166 form.inc
--- includes/form.inc	12 Dec 2006 10:01:38 -0000	1.166
+++ includes/form.inc	16 Dec 2006 19:04:23 -0000
@@ -246,6 +246,7 @@ function drupal_process_form($form_id, &
   $form_values = array();
   $form_submitted = FALSE;
   $form_button_counter = array(0, 0);
+  $redirect = NULL;
 
   drupal_prepare_form($form_id, $form);
   if (($form['#programmed']) || (!empty($_POST) && (($_POST['form_id'] == $form_id) || ($_POST['form_id'] == $form['#base'])))) {
@@ -448,6 +449,7 @@ function drupal_submit_form($form_id, $f
  *
  */
 function drupal_render_form($form_id, &$form) {
+  $base = '';
   // Don't override #theme if someone already set it.
   if (isset($form['#base'])) {
     $base = $form['#base'];
@@ -946,6 +948,13 @@ function form_select_options($element, $
  *   A themed HTML string representing the form item group.
  */
 function theme_fieldset($element) {
+  // Each key defaults to '' for E_ALL compliance.
+  $keys = array('#attributes', '#children', '#collapsible', '#description', '#title', '#value');
+  foreach ($keys as $key) {
+    if (!isset($element[$key])) {
+      $element[$key] = '';
+    }
+  }
   if ($element['#collapsible']) {
     drupal_add_js('misc/collapse.js');
 
Index: includes/install.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/install.inc,v
retrieving revision 1.30
diff -u -p -r1.30 install.inc
--- includes/install.inc	8 Dec 2006 11:54:04 -0000	1.30
+++ includes/install.inc	16 Dec 2006 19:04:23 -0000
@@ -204,7 +204,7 @@ function drupal_rewrite_settings($settin
           // Write new value to settings.php in the following format:
           //    $'setting' = 'value'; // 'comment'
           $setting = $settings[$variable[1]];
-          $buffer .= '$'. $variable[1] ." = '". $setting['value'] ."';". ($setting['comment'] ? ' // '. $setting['comment'] ."\n" : "\n");
+          $buffer .= '$'. $variable[1] ." = '". $setting['value'] ."';". (isset($setting['comment']) && $setting['comment'] ? ' // '. $setting['comment'] ."\n" : "\n");
           unset($settings[$variable[1]]);
         }
         else {
Index: includes/install.mysql.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/install.mysql.inc,v
retrieving revision 1.3
diff -u -p -r1.3 install.mysql.inc
--- includes/install.mysql.inc	20 Aug 2006 06:38:50 -0000	1.3
+++ includes/install.mysql.inc	16 Dec 2006 19:04:23 -0000
@@ -28,14 +28,20 @@ function drupal_test_mysql($url, &$succe
   $url = parse_url($url);
 
   // Decode url-encoded information in the db connection string.
-  $url['user'] = urldecode($url['user']);
-  $url['pass'] = urldecode($url['pass']);
-  $url['host'] = urldecode($url['host']);
-  $url['path'] = urldecode($url['path']);
+  $components = array('user', 'pass', 'host', 'path');
+  foreach ($components as $key) {
+    if (isset($url[$key])) {
+      $url[$key] = urldecode($url[$key]);
+    }
+    else {
+      // Default to '' for E_ALL compliance.
+      $url[$key] = '';
+    }
+  }
 
   // Allow for non-standard MySQL port.
   if (isset($url['port'])) {
-     $url['host'] = $url['host'] .':'. $url['port'];
+    $url['host'] = $url['host'] .':'. $url['port'];
   }
 
   // Test connecting to the database.
Index: includes/install.mysqli.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/install.mysqli.inc,v
retrieving revision 1.5
diff -u -p -r1.5 install.mysqli.inc
--- includes/install.mysqli.inc	6 Sep 2006 07:46:24 -0000	1.5
+++ includes/install.mysqli.inc	16 Dec 2006 19:04:23 -0000
@@ -28,10 +28,20 @@ function drupal_test_mysqli($url, &$succ
   $url = parse_url($url);
 
   // Decode url-encoded information in the db connection string.
-  $url['user'] = urldecode($url['user']);
-  $url['pass'] = urldecode($url['pass']);
-  $url['host'] = urldecode($url['host']);
-  $url['path'] = urldecode($url['path']);
+  $components = array('user', 'pass', 'host', 'path');
+  foreach ($components as $key) {
+    if (isset($url[$key])) {
+      $url[$key] = urldecode($url[$key]);
+    }
+    else {
+      // Default to '' for E_ALL compliance.
+      $url[$key] = '';
+    }
+  }
+
+  if (!isset($url['port'])) {
+    $url['port'] = '';
+  }
 
   $connection = mysqli_init();
   @mysqli_real_connect($connection, $url['host'], $url['user'], $url['pass'], substr($url['path'], 1), $url['port'], NULL, MYSQLI_CLIENT_FOUND_ROWS);
Index: includes/install.pgsql.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/install.pgsql.inc,v
retrieving revision 1.1
diff -u -p -r1.1 install.pgsql.inc
--- includes/install.pgsql.inc	4 Aug 2006 06:58:43 -0000	1.1
+++ includes/install.pgsql.inc	16 Dec 2006 19:04:23 -0000
@@ -28,10 +28,16 @@ function drupal_test_pgsql($url, &$succe
   $url = parse_url($url);
 
   // Decode url-encoded information in the db connection string.
-  $url['user'] = urldecode($url['user']);
-  $url['pass'] = urldecode($url['pass']);
-  $url['host'] = urldecode($url['host']);
-  $url['path'] = urldecode($url['path']);
+  $components = array('user', 'pass', 'host', 'path');
+  foreach ($components as $key) {
+    if (isset($url[$key])) {
+      $url[$key] = urldecode($url[$key]);
+    }
+    else {
+      // Default to '' for E_ALL compliance.
+      $url[$key] = '';
+    }
+  }
 
   // Build pgsql connection string and allow for non-standard PostgreSQL port.
   $conn_string = ' user='. $url['user'] .' dbname='. substr($url['path'], 1) .' password='. $url['pass'] . ' host=' . $url['host'];
