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

Commit

Permalink
Merge 8fafa99 into 147c65c
Browse files Browse the repository at this point in the history
  • Loading branch information
panvid committed Apr 26, 2018
2 parents 147c65c + 8fafa99 commit b73e5a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ All notable changes to this project will be documented in this file, in reverse

### Fixed

- Nothing.
- [#165](https://github.com/zendframework/zend-cache/issues/165) On not found any cache entry the `$success` attribute is `false`.

## 2.8.0 - 2018-04-24

Expand Down
4 changes: 2 additions & 2 deletions src/Storage/Adapter/Memcached.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ protected function internalGetItem(& $normalizedKey, & $success = null, & $casTo
if (func_num_args() > 2) {
if (defined('Memcached::GET_EXTENDED')) {
$output = $memc->get($internalKey, null, \Memcached::GET_EXTENDED);
$casToken = $output['cas'];
$result = $output['value'];
$casToken = $output ? $output['cas'] : $casToken;
$result = $output ? $output['value'] : false;
} else {
$result = $memc->get($internalKey, null, $casToken);
}
Expand Down

0 comments on commit b73e5a8

Please sign in to comment.