Issues

ZF-6943: Wrong error message in Zend_Cache_Backend_TwoLevels Exception

Issue Type: Bug Created: 2009-06-07T07:24:07.000+0000 Last Updated: 2011-08-04T01:51:27.000+0000 Status: Resolved Fix version(s): - 1.8.3 (09/Jun/09)

Reporter: Nicolas Ruflin (ruflin) Assignee: Satoru Yoshida (satoruyoshida) Tags: - Zend_Cache

Related issues: Attachments:

Description

In the constructor of the file Zend_Cache_Backend_TwoLevels.php is a wrong error message in the throw exception part on line 135.

The second throw exception should be: "fast_backend must implement ... " instead of "slow_backend must ...". Otherwise coders are looking in the wrong place for errors.

<pre class="highlight">
if (!in_array('Zend_Cache_Backend_ExtendedInterface', class_implements($this->_slowBackend))) {
    Zend_Cache::throwException('slow_backend must implement the Zend_Cache_Backend_ExtendedInterface interface');
}
if (!in_array('Zend_Cache_Backend_ExtendedInterface', class_implements($this->_fastBackend))) {
    Zend_Cache::throwException('slow_backend must implement the Zend_Cache_Backend_ExtendedInterface interface');
}

Comments

Posted by old of Satoru Yoshida (yoshida@zend.co.jp) on 2009-06-07T18:41:14.000+0000

Solved in SVN r15931

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