Issues

ZF-6943: Wrong error message in Zend_Cache_Backend_TwoLevels Exception

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.


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

Solved in SVN r15931