Issues

ZF-9740: Zend_Cache_Core: const BACKEND_NOT_SUPPORTS_TAG typo

Issue Type: Bug Created: 2010-04-24T01:52:23.000+0000 Last Updated: 2010-06-25T19:35:42.000+0000 Status: Resolved Fix version(s): - 1.10.7 (28/Jul/10)

Reporter: Niko Sams (nikosams) Assignee: Jan Pieper (jpieper) Tags: - Zend_Cache

Related issues: Attachments:

Description

There is a typo when throwing the exception that tags are not supported by the backend.

Patch against current trunk:

<pre class="highlight">
Index: Zend/Cache/Core.php                                         
===================================================================
--- Zend/Cache/Core.php (revision 21978)                           
+++ Zend/Cache/Core.php (working copy)                             
@@ -475,7 +475,7 @@                                                
             Zend_Cache::throwException(self::BACKEND_NOT_IMPLEMENTS_EXTENDED_IF);
         }                                                                        
         if (!($this->_backendCapabilities['tags'])) {                            
-            Zend_Cache::throwException(self::BACKEND_NOT_SUPPORT_TAG);           
+            Zend_Cache::throwException(self::BACKEND_NOT_SUPPORTS_TAG);          
         }                                                                        
                                                                                  
         $ids = $this->_backend->getIdsMatchingTags($tags);                       
@@ -508,7 +508,7 @@                                                               
             Zend_Cache::throwException(self::BACKEND_NOT_IMPLEMENTS_EXTENDED_IF);
         }
         if (!($this->_backendCapabilities['tags'])) {
-            Zend_Cache::throwException(self::BACKEND_NOT_SUPPORT_TAG);
+            Zend_Cache::throwException(self::BACKEND_NOT_SUPPORTS_TAG);
         }

         $ids = $this->_backend->getIdsNotMatchingTags($tags);
@@ -541,7 +541,7 @@
             Zend_Cache::throwException(self::BACKEND_NOT_IMPLEMENTS_EXTENDED_IF);
         }
         if (!($this->_backendCapabilities['tags'])) {
-            Zend_Cache::throwException(self::BACKEND_NOT_SUPPORT_TAG);
+            Zend_Cache::throwException(self::BACKEND_NOT_SUPPORTS_TAG);
         }

         $ids = $this->_backend->getIdsMatchingAnyTags($tags);
@@ -598,7 +598,7 @@
             Zend_Cache::throwException(self::BACKEND_NOT_IMPLEMENTS_EXTENDED_IF);
         }
         if (!($this->_backendCapabilities['tags'])) {
-            Zend_Cache::throwException(self::BACKEND_NOT_SUPPORT_TAG);
+            Zend_Cache::throwException(self::BACKEND_NOT_SUPPORTS_TAG);
         }
         return $this->_backend->getTags();
     }

Comments

Posted by Jan Pieper (jpieper) on 2010-04-24T04:43:08.000+0000

Fixed in r21980.

Posted by Ramon Henrique Ornelas (ramon) on 2010-06-25T19:35:39.000+0000

Merged r21980 to branch release-1.10.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts