In the event that database format upgrade fails because row data cannot be unserialized, the script errors fatally. Additional error handling is needed, or perhaps detection of row format to determine if the row data has already been upgraded.
Description
Description
Details
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Suppress unserialize errors | mediawiki/extensions/OATHAuth | master | +2 -0 |
Event Timeline
Comment Actions
MediaWiki\suppressWarnings(); $scratchTokens = unserialize( base64_decode( $row->scratch_tokens ) ); MediaWiki\restoreWarnings();
would be enough to stop the noise, but isn't really checking for whether things are already migrated
Comment Actions
Change 311201 had a related patch set uploaded (by Reedy):
Suppress unserialize errors
Comment Actions
Maybe, but it's probably not worth the time. My previous change stopped it fatal-ing in most cases