Issues

ZF-5980: Zend_Cache_Core method visibility

Issue Type: Bug Created: 2009-03-10T08:27:46.000+0000 Last Updated: 2012-12-07T10:31:05.000+0000 Status: Resolved Fix version(s): Reporter: Bob Gaudaen (bgaudaen) Assignee: Fabien MARTY (fab) Tags: - Zend_Cache

Related issues: Attachments:

Description

Hi,

Zend_Cache_Core doesn't permit to add custom functionality due to all it's private method/property declarations.

Say I want to create my own Zend_Cache_Core:

<pre class="highlight">
class Test_Cache_Core extends Zend_Cache_Core
{
    public function add($data, $id, ....)
    {
        $id = $this->_id($id);  // This call will fail because Zend_Cache_Core::_id is declared as private
        [....]
    }
}

Here I can't use Zend_Cache_Core::_id(). Is there any reason for these methods to be private? If you want these methods not to be overridden you could just declare them as 'protected final'

Here is a list of methods I want to use but that are declared as private:

  • Zend_Cache_Core::_id()
  • Zend_Cache_Core::_validateIdOrTag()
  • Zend_Cache_Core::_validateTagsArray()

Comments

Posted by Fabien MARTY (fab) on 2009-03-28T10:34:56.000+0000

fixed in SVN trunk (thanks)

Posted by Adrian Caragea (adrianc) on 2012-12-07T10:00:42.000+0000

Hello, in what verion has this fix been released?

Posted by Frank Br├╝ckner (frosch) on 2012-12-07T10:29:19.000+0000

Hi Adrian, this was fixed with 1.8.0(b1) (r15.521).

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