Last modified: 2014-11-12 11:48:27 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T75260, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 73260 - Make DatabaseUpdater support non-static updates
Make DatabaseUpdater support non-static updates
Status: NEW
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
1.25-git
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 73261
  Show dependency treegraph
 
Reported: 2014-11-11 11:46 UTC by Adrian Lang
Modified: 2014-11-12 11:48 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Adrian Lang 2014-11-11 11:46:29 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links