? bootstrap.patch
Index: includes/bootstrap.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/bootstrap.inc,v
retrieving revision 1.147
diff -u -p -r1.147 bootstrap.inc
--- includes/bootstrap.inc	29 Jan 2007 19:25:19 -0000	1.147
+++ includes/bootstrap.inc	7 Mar 2007 10:48:55 -0000
@@ -767,6 +767,11 @@ function drupal_anonymous_user($session 
 function drupal_bootstrap($phase) {
   static $phases = array(DRUPAL_BOOTSTRAP_CONFIGURATION, DRUPAL_BOOTSTRAP_EARLY_PAGE_CACHE, DRUPAL_BOOTSTRAP_DATABASE, DRUPAL_BOOTSTRAP_ACCESS, DRUPAL_BOOTSTRAP_SESSION, DRUPAL_BOOTSTRAP_LATE_PAGE_CACHE, DRUPAL_BOOTSTRAP_PATH, DRUPAL_BOOTSTRAP_FULL);
 
+  //Skipping phase execution, if $phase was already executed
+  if (count($phases) && ($phase < min($phases))) {
+    return;
+  }
+
   while (!is_null($current_phase = array_shift($phases))) {
     _drupal_bootstrap($current_phase);
     if ($phase == $current_phase) {
