<pre name="code" class="php">
switch ($current_phase) {
case DRUPAL_BOOTSTRAP_CONFIGURATION:
_drupal_bootstrap_configuration();
break;
1.初始化配置
#<span style="font-family: monospace; font-size: 16px; line-height: 24px;">设置错误处理机制</span>
set_error_handler('_drupal_error_handler');
<span style="font-family: monospace; font-size: 16px; line-height: 24px;"> #设置错误异常捕捉机制</span>
drupal_environment_initialize();
#设置页面执行开始时间
timer_start('page');
#初始化配置包括settings.php里面的变量
drupal_settings_initialize();