Merge "objectcache: fix WinCacheBagOStuf::doGet() is_string() check"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 18 Jul 2019 06:39:29 +0000 (06:39 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 18 Jul 2019 06:39:29 +0000 (06:39 +0000)
includes/libs/objectcache/WinCacheBagOStuff.php

index d75b344..23da0bb 100644 (file)
@@ -32,7 +32,7 @@ class WinCacheBagOStuff extends BagOStuff {
                $casToken = null;
 
                $blob = wincache_ucache_get( $key );
-               if ( !is_string( $blob ) ) {
+               if ( !is_string( $blob ) && !is_int( $blob ) ) {
                        return false;
                }