Issues

ZF-11976: Zend_Cache_Core::setBackend should accept Zend_Cache_Backend_Interface

Issue Type: Improvement Created: 2012-01-06T10:41:40.000+0000 Last Updated: 2012-02-23T23:33:05.000+0000 Status: Open Fix version(s): Reporter: Kanstantsin (kkamkou) Assignee: Alexander Veremyev (alexander) Tags: - Zend_Cache

  • cache
  • zf-crteam-review

Related issues: Attachments:

Description

Hello ZF team. First of all thank you for your work. There is strange behavior with one of the cache function (Zend_Cache_Core::setBackend). It uses Zend_Cache_Backend as parameter, but more logical if it use Zend_Cache_Backend_Interface instead.

Comments

Posted by Adam Lundrigan (adamlundrigan) on 2012-02-23T23:33:05.000+0000

Downgrading to Minor, as all backends extend Zend_Cache_Backend at this point. There really isn't any gain that I can see in changing this now, and there is the possibility that people out there may have created custom backends that extend Zend_Cache_Backend but don't implement the interface and so those would no longer be accepted by Zend_Cache_Core. It may be worth making a note in the manual about needing to extend Zend_Cache_Backend if you're creating a new custom backend, though

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