update_invoke_post_update() can misidentify hook_update_N().

Created on 4 August 2022, about 2 years ago
Updated 13 April 2023, over 1 year ago

Problem/Motivation

I have a problem when I update DB with a module whose name ends with _post.
I implemented it with the intention of hook_update_N, but it is recognized as hook_post_update_NAME.

Steps to reproduce

Please refer to it because it is very similar to the following problem.
https://www.drupal.org/project/social/issues/3177521

Proposed resolution

In the first place, if the NAME of hook_post_update_NAME starts with a number, you should stop at that point because you cannot define a function name that starts with a number.

Remaining tasks

Please check if the attached patch can be processed normally by the regular test procedure.

User interface changes

None.

API changes

None.

Data model changes

None.

Release notes snippet

None.

🐛 Bug report
Status

Active

Version

9.5

Component
Database update 

Last updated 9 days ago

No maintainer
Created by

🇯🇵Japan zealialize Japan 🇯🇵

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024