Commit f8a1f7f0 authored by japerry's avatar japerry
Browse files

Issue #3191363 by yas: Support PHP8 for Memcache(d)

parent 5a0260c8
...@@ -222,8 +222,8 @@ class MemcacheStatsObject implements MemcacheStatsInterface { ...@@ -222,8 +222,8 @@ class MemcacheStatsObject implements MemcacheStatsInterface {
[ [
'@get' => number_format($get, 2), '@get' => number_format($get, 2),
'@set' => number_format($set, 2), '@set' => number_format($set, 2),
'@read' => format_size(number_format($read, 2)), '@read' => format_size((int) number_format($read, 2)),
'@write' => format_size(number_format($write, 2)), '@write' => format_size((int) number_format($write, 2)),
] ]
); );
} }
......
...@@ -68,7 +68,7 @@ class MemcachedDriver extends DriverBase { ...@@ -68,7 +68,7 @@ class MemcachedDriver extends DriverBase {
} }
} }
if (PHP_MAJOR_VERSION === 7) { if (PHP_MAJOR_VERSION >= 7) {
$results = $this->memcache->getMulti($full_keys, \Memcached::GET_PRESERVE_ORDER); $results = $this->memcache->getMulti($full_keys, \Memcached::GET_PRESERVE_ORDER);
} }
else { else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment