dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge "RedisBagOStuff: Fix unserialization of negative numbers"
[lhc/web/wiklou.git]
/
includes
/
objectcache
/
RedisBagOStuff.php
diff --git
a/includes/objectcache/RedisBagOStuff.php
b/includes/objectcache/RedisBagOStuff.php
index
61e6926
..
90508da
100644
(file)
--- a/
includes/objectcache/RedisBagOStuff.php
+++ b/
includes/objectcache/RedisBagOStuff.php
@@
-310,7
+310,8
@@
class RedisBagOStuff extends BagOStuff {
* @return mixed
*/
protected function unserialize( $data ) {
- return ctype_digit( $data ) ? intval( $data ) : unserialize( $data );
+ $int = intval( $data );
+ return $data === (string)$int ? $int : unserialize( $data );
}
/**