Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Zend\Cache\Pattern\CallbackCache doesn't work with NULL #4629

Closed

Conversation

weierophinney
Copy link
Member

https://github.com/zendframework/zf2/blob/master/library/Zend/Cache/Pattern/CallbackCache.php#L51

if (!isset($result[0])) {
throw new Exception\RuntimeException("Invalid cached data for key '{$key}'");
}

The cache has been saved and loaded correct but this condition returns false because isset returns false on NULL - should be replaced by array_key_exists

;)

- Implemented test case for zendframework#4629
- Used fix suggested in original report
mwillbanks pushed a commit that referenced this pull request Jun 12, 2013
weierophinney added a commit to zendframework/zend-cache that referenced this pull request May 15, 2015
…lbacks

- Implemented test case for zendframework/zendframework#4629
- Used fix suggested in original report
gianarb pushed a commit to zendframework/zend-cache that referenced this pull request May 15, 2015
gianarb pushed a commit to zendframework/zend-cache that referenced this pull request May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant