Drupal 7 Line by Line Part 3 - DRUPAL_BOOTSTRAP_CONFIGURATION
In this third part of the Line by Line series I'll take a look at the first phase of the bootstrap process: namely DRUPAL_BOOTSTRAP_CONFIGURATION.
In the first part of this series I looked at index.php. In the second part I continued through the workings of the drupal_bootstrap function.
Up until now I've been literally going through the code line by line. From this point on I'm going to be less literal and only occasionally do line by line analysis where I think a closer look might be interesting.
So lets jump back in where we left off. I'd just finished explaining that Drupal was aware that it needed to do a full bootstrap and it was just about to start the first phase of that process.
Drupal calls the function _drupal_bootstrap_configuration().
Error Handling
The very first thing that happens in the first phase of the bootstrap process is Drupal defines its own error handling functions. Up until this point if an error had occurred in the code php would have used its own error handling to report the problem. Luckily very few lines of code have been executed to this point.