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

ZendCache 2.8 sets $success on getItem if there is a null response #165

Closed
panvid opened this issue Apr 26, 2018 · 1 comment
Closed

ZendCache 2.8 sets $success on getItem if there is a null response #165

panvid opened this issue Apr 26, 2018 · 1 comment

Comments

@panvid
Copy link

panvid commented Apr 26, 2018

If you use the getItem function from Storage/Adapter/AbstractAdapter you have the $success reference to check whether it succeed or not. This attribute is also true if the getItem responseded null (getting the item failed)`.

In previous ZendCache 2.7 it works perfectly.

Code to reproduce the issue

$item = $this->cache->getItem('someCacheKey', $success);

# $success is true but the $item is null

Expected results

The $success attribute is needed to know whether a $item is found or not, so it should be false.

thomasvargiu added a commit to thomasvargiu/zend-cache that referenced this issue Apr 26, 2018
thomasvargiu added a commit to thomasvargiu/zend-cache that referenced this issue Apr 26, 2018
thomasvargiu added a commit to thomasvargiu/zend-cache that referenced this issue Apr 26, 2018
weierophinney pushed a commit that referenced this issue Apr 26, 2018
weierophinney pushed a commit that referenced this issue Apr 26, 2018
@weierophinney
Copy link
Member

Fixed with #166/#167

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants