Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
memcache
Commits
f8a1f7f0
Commit
f8a1f7f0
authored
Mar 03, 2021
by
japerry
Browse files
Issue
#3191363
by yas: Support PHP8 for Memcache(d)
parent
5a0260c8
Changes
2
Hide whitespace changes
Inline
Side-by-side
memcache_admin/src/Stats/MemcacheStatsObject.php
View file @
f8a1f7f0
...
@@ -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
)),
]
]
);
);
}
}
...
...
src/Driver/MemcachedDriver.php
View file @
f8a1f7f0
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment