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.
In module_implements function in module.inc when refresh is true we try to delete all previous values in $implementations but because $implementations is static we can't do that with unset. Quote from php docs http://www.php.net/manual/en/function.unset.php
If a static variable is unset() inside of a function, unset() destroys the variable only in the context of the rest of a function. Following calls will restore the previous value of a variable.
My patch does that with
$implementations = array();
Comment | File | Size | Author |
---|---|---|---|
#3 | module.inc_.implementsD5.patch | 512 bytes | Rok Žlender |
module.inc_.implements.patch | 503 bytes | Rok Žlender | |
Comments
Comment #1
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks. :)
Comment #2
yched CreditAttribution: yched commentedShouldn't that be backported ?
Comment #3
Rok Žlender CreditAttribution: Rok Žlender commentedPatch for Drupal 5.
Comment #4
moshe weitzman CreditAttribution: moshe weitzman commentedComment #5
drummCommitted to 5.x.
Comment #6
(not verified) CreditAttribution: commented