Zend Framework

Zend_Cache_Frontend_Function::call() Supporting object methods via callback parameter

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.10.2
  • Fix Version/s: 1.10.7
  • Component/s: Zend_Cache
  • Labels:
    None

Description

I see that this issue was previously marked as fixed: http://framework.zend.com/issues/browse/ZF-722

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()

/**
 * 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));
}

Issue Links

Activity

Hide
Marc Bennewitz (private) added a comment -

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.

Show
Marc Bennewitz (private) added a comment - 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.
Hide
Mauro Asprea added a comment -

Yes it does! Thanks

Show
Mauro Asprea added a comment - Yes it does! Thanks
Hide
Marc Bennewitz (private) added a comment -

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

Show
Marc Bennewitz (private) added a comment - fixed in r22504 (1.10 branch) & r22503 (trunk)

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: