module_implements() currently fails to detect an include file if the file is already loaded during cache building. That way hook implementations are missed when the file then isn't loaded during another page request.

Attached a fix including a test for that.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

fago’s picture

FileSize
3.35 KB

I noted the added file for the test was missing in the patch. Added it.

fago’s picture

Hello bot, please test my patch!

catch’s picture

Status: Needs review » Reviewed & tested by the community

Looks sensible, code only runs on cache rebuild so no particular reason to check module_hook() first.

fago’s picture

Any chance to get this committed soon? :)

I'm using that grouping functionality for rules and without that patch rules won't find its files after a cache rebuild.

realityloop’s picture

#2: module_implements_fix_0.patch queued for re-testing.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.