ZF-9979: Function Cache makeid 'Incorrect function name'
Description
When using call like in the call_user_func_array docs example http://php.net/manual/en/…, if we try to call the method of an object, it throws Zend_Cache::throwException('Incorrect function name');
Example: $api = new MyApi(); $xml = $cache->call(array($api, 'searchProducts'), $args);
So I would modify the "incorrect..." by this: if (!is_string($name)) { //Zend_Cache::throwException('Incorrect function name'); $name = print_r($name, true); }
Comments
Posted by Mauro Asprea (brutuscat) on 2010-06-25T03:39:00.000+0000
To clarify, this is how the _makeid of the Zend_Cache_Frontend_Function should look like:
Posted by Marc Bennewitz (private) (mabe) on 2010-06-29T10:21:07.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 Marc Bennewitz (private) (mabe) on 2010-06-30T10:06:32.000+0000
fixed in r22504 (1.10 branch) & r22503 (trunk)