Procházet 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 před 16 roky
rodič
revize
d6da5125a8
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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)
     {
         $tmp = $this->_fetch('internal-metadatas---' . $id);
-        if ($tmp !== null) {
+        if ($tmp !== false) {
             if (!is_array($tmp) || !isset($tmp['mtime'])) {
                 Zend_Cache::throwException('Cache metadata for \'' . $id . '\' id is corrupted' );
             }