ZF-9422: Zend_Cache_Frontend_Function::call() Supporting object methods via callback parameter

Issue Type: Bug Created: 2010-03-13T18:50:46.000+0000 Last Updated: 2010-06-30T10:35:11.000+0000 Status: Closed Fix version(s): - 1.10.7 (28/Jul/10)

Reporter: Eugene Song (bakadesu) Assignee: Marc Bennewitz (private) (mabe) Tags: - Zend_Cache

Related issues: - ZF-9979



I see that this issue was previously marked as fixed:

However, ZF 1.10.2 doesn't allow object methods. Source shows that private function _makeId($name, $parameters) still requires a string preventing object methods being specified in $cache->call()

<pre class="highlight"> 
 * Make a cache id from the function name and parameters
 * @param  string $name       Function name
 * @param  array  $parameters Function parameters
 * @throws Zend_Cache_Exception
 * @return string Cache id
private function _makeId($name, $parameters)
    if (!is_string($name)) {
        Zend_Cache::throwException('Incorrect function name');
    if (!is_array($parameters)) {
        Zend_Cache::throwException('parameters argument must be an array');
    return md5($name . serialize($parameters));


Posted by Marc Bennewitz (private) (mabe) on 2010-06-29T10:22:10.000+0000

I committed some changes to the function frontend to allow all types of callbacks. (r22503 @ trunk)

Please tell me if it will close your issue.

Posted by Mauro Asprea (brutuscat) on 2010-06-30T03:13:45.000+0000

Yes it does! Thanks :D

Posted by Marc Bennewitz (private) (mabe) on 2010-06-30T10:06:53.000+0000

fixed in r22504 (1.10 branch) & r22503 (trunk)

Have you found an issue?

See the Overview section for more details.


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

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