Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It does return drupal_bootstrap();
but drupal_bootstrap($phase = NULL, $new_phase = TRUE)
so this triggers a $new_phase
causing if ($new_phase) { $final_phase = $phase; }
to fire, breaking the bootstrap if it's not completed. Two fixes are necessary:
- Do not allow drupal_bootstrap to store a phase it already passed.
- Change the getter to
return drupal_bootstrap(NULL, FALSE);
Comment | File | Size | Author |
---|---|---|---|
#1 | drupal_get_bootstrap_phase_fault-1806992-1.patch | 1.93 KB | superspring |
Comments
Comment #1
superspring CreditAttribution: superspring commentedPhase is only stored if it has not already passed and drupal_get_bootstrap is called correctly.
Comment #2
RobLoach#1: drupal_get_bootstrap_phase_fault-1806992-1.patch queued for re-testing.
Comment #3.0
(not verified) CreditAttribution: commentedfinalized a sentence
Comment #4
ianthomas_ukThis has been superseeded by #2016629: Refactor bootstrap to better utilize the kernel
Comment #5
chx CreditAttribution: chx commentedNote that this is still an issue in D7 stalled for close to five years now at #667098: drupal_get_bootstrap_phase() is broken . Yay, core process!