Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
memcache
Commits
7464fa39
Commit
7464fa39
authored
Sep 26, 2011
by
catch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#1289762
by catch: fix E_STRICT warning from array_keys().
parent
9dc9449a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
memcache.inc
memcache.inc
+2
-1
No files found.
memcache.inc
View file @
7464fa39
...
...
@@ -245,7 +245,8 @@ class MemCacheDrupal implements DrupalCacheInterface {
// shortest wildcard clear on the table so far. So if the shortest
// wildcard was "links:foo:", and the cid we're checking for is
// "links:bar:bar", then the key will be "links:bar:".
$wildcard_length
=
strlen
(
reset
(
array_keys
(
$this
->
wildcard_flushes
[
$this
->
bin
])));
$keys
=
array_keys
(
$this
->
wildcard_flushes
[
$this
->
bin
]);
$wildcard_length
=
strlen
(
reset
(
$keys
));
$wildcard_key
=
substr
(
$cid
,
0
,
$wildcard_length
);
// Determine which lookups we need to perform to determine whether or not
...
...
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