From d0532c166beaa6210a35809fdb2e9f8264af0009 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Thu, 18 Mar 2010 05:34:59 +0000 Subject: [PATCH] Fixed object type unserialization. Based on WMF working copy patch, tested there. --- maintenance/storage/dumpRev.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/maintenance/storage/dumpRev.php b/maintenance/storage/dumpRev.php index 167d86c6f6..95404244b9 100644 --- a/maintenance/storage/dumpRev.php +++ b/maintenance/storage/dumpRev.php @@ -62,7 +62,8 @@ class DumpRev extends Maintenance { $text = gzinflate( $text ); } if ( in_array( 'object', $flags ) ) { - $text = unserialize( $text ); + $obj = unserialize( $text ); + $text = $obj->getText(); } if ( is_object( $text ) ) { -- 2.20.1