Prechádzať zdrojové kódy

[ZF-7358]Zend_Cache_Backend_ZendServer_ShMem and Zend_Cache_Backend_ZendServer_Disk throws an exception in test()

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@17671 44c647ce-9c0f-0410-b52a-842ac1e357ba
yoshida@zend.co.jp 16 rokov pred
rodič
commit
d6da5125a8
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      library/Zend/Cache/Backend/ZendServer.php

+ 1 - 1
library/Zend/Cache/Backend/ZendServer.php

@@ -104,7 +104,7 @@ abstract class Zend_Cache_Backend_ZendServer extends Zend_Cache_Backend implemen
     public function test($id)
     public function test($id)
     {
     {
         $tmp = $this->_fetch('internal-metadatas---' . $id);
         $tmp = $this->_fetch('internal-metadatas---' . $id);
-        if ($tmp !== null) {
+        if ($tmp !== false) {
             if (!is_array($tmp) || !isset($tmp['mtime'])) {
             if (!is_array($tmp) || !isset($tmp['mtime'])) {
                 Zend_Cache::throwException('Cache metadata for \'' . $id . '\' id is corrupted' );
                 Zend_Cache::throwException('Cache metadata for \'' . $id . '\' id is corrupted' );
             }
             }