We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf772cf commit 9e4c514Copy full SHA for 9e4c514
src/DrupalMemcached.php
@@ -76,8 +76,12 @@ public function getMulti(array $keys) {
76
$full_keys[$cid] = $full_key;
77
}
78
79
- $cas_tokens = NULL;
80
- $results = $this->memcache->getMulti($full_keys, $cas_tokens, \Memcached::GET_PRESERVE_ORDER);
+ if (PHP_MAJOR_VERSION === 7) {
+ $results = $this->memcache->getMulti($full_keys, \Memcached::GET_PRESERVE_ORDER);
81
+ } else {
82
+ $cas_tokens = NULL;
83
+ $results = $this->memcache->getMulti($full_keys, $cas_tokens, \Memcached::GET_PRESERVE_ORDER);
84
+ }
85
86
// If $results is FALSE, convert it to an empty array.
87
if (!$results) {
0 commit comments