3 * Functionality used for internationalization related functionality
8 * A wrapper around PHP's unserialize that tries to cope when the database
9 * encoding has changed.
11 public static function unserialize($string) {
12 $ret = @unserialize
($string);
17 // When upgrading from <5.3.2 to >=5.3.2, this is needed
18 $ret = @unserialize
(@utf8_encode
($string));
22 // This shouldn't ever happen, but why not try? If we get this far,
23 // all the reasonable methods have already failed.
24 return @unserialize
(@utf8_decode
($string));