In some circumstances, you're able to (trigger) calls to module_invoke_all, especially in hook_boot, when you don't want this to happen. This causes issues eg outlined in http://drupal.org/node/557542#comment-2043740
To circumvent this, we want to move module_invoke_all into a file which is loaded later than hook_boot is executed.

Comments

jose reyero’s picture

Version: 7.x-dev » 8.x-dev

I think this is a great idea to be considered for Drupal 8, then maybe backported.

There are too many caching issues around in contrib caused by hooks being called too early in bootstrap.

les lim’s picture

Version: 8.x-dev » 7.x-dev

This issue is made obsolete in 8.x by #1833442: Remove hook_boot().

Status: Active » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.