When looking for update functions, lowercase the module name, because PHP functions are lowercased.

Index: core/includes/install.inc
===================================================================
--- core/includes/install.inc   (revision 41)
+++ core/includes/install.inc   (working copy)
@@ -39,6 +39,7 @@
 function drupal_get_schema_versions($module) {
   $updates = array();
   $functions = get_defined_functions();
+  $module = strtolower($module);
   foreach ($functions['user'] as $function) {
     if (strpos($function, $module .'_update_') === 0) {
       $version = substr($function, strlen($module .'_update_'));

CommentFileSizeAuthor
#1 install.patch525 bytesstashlbai

Comments

stashlbai’s picture

Component: update system » install system
StatusFileSize
new525 bytes

This patch also works against v6.1.

drumm’s picture

Status: Needs review » Closed (works as designed)

I reviewed all calls to drupal_get_schema_versions() in 5.x core and did not identify any ways for improperly-capitalized module names to get passed to drupal_get_schema_versions(). Contributed code should use valid module names and not depend on core to clean up mistakes.