https://bugzilla.wikimedia.org/show_bug.cgi?id=73260

            Bug ID: 73260
           Summary: Make DatabaseUpdater support non-static updates
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Database
          Assignee: [email protected]
          Reporter: [email protected]
       Web browser: ---
   Mobile Platform: ---

DatabaseUpdater::setAppliedUpdates serializes the whole update definition.
DatabaseUpdater::runUpdates internally uses call_user_func_array, and thus
supports a variety of update definitions (among them closures and `array(
$object, 'methodname' )`). Not all of them are serializable, though.

I ran into this when trying to remove a static method in wikibase
(https://gerrit.wikimedia.org/r/168276). The instance on which the method is
defined is not serializable, though, and thus the updatelog updating fails.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to