Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
redis-3102739
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
redis-3102739
Commits
53f4e89c
Commit
53f4e89c
authored
9 years ago
by
drcolossos
Committed by
Pierre.R
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2453065
by DrColossos: Invalid bulk length due to possbile wrong function call
parent
2936ee3f
No related branches found
Branches containing commit
Tags
8.x-3.0-alpha4
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/Redis/Cache/Predis.php
+3
-3
3 additions, 3 deletions
lib/Redis/Cache/Predis.php
with
3 additions
and
3 deletions
lib/Redis/Cache/Predis.php
+
3
−
3
View file @
53f4e89c
...
...
@@ -117,7 +117,7 @@ class Redis_Cache_Predis extends Redis_Cache_Base
public
function
deleteByPrefix
(
$prefix
)
{
$client
=
$this
->
getClient
();
$ret
=
$client
->
eval
(
self
::
EVAL_DELETE_PREFIX
,
array
(
$this
->
getKey
(
$prefix
.
'*'
))
)
;
$ret
=
$client
->
eval
(
self
::
EVAL_DELETE_PREFIX
,
1
,
$this
->
getKey
(
$prefix
.
'*'
));
if
(
1
!=
$ret
)
{
trigger_error
(
sprintf
(
"EVAL failed: %s"
,
$client
->
getLastError
()),
E_USER_ERROR
);
}
...
...
@@ -126,7 +126,7 @@ class Redis_Cache_Predis extends Redis_Cache_Base
public
function
flush
()
{
$client
=
$this
->
getClient
();
$ret
=
$client
->
eval
(
self
::
EVAL_DELETE_PREFIX
,
array
(
$this
->
getKey
(
'*'
))
)
;
$ret
=
$client
->
eval
(
self
::
EVAL_DELETE_PREFIX
,
1
,
$this
->
getKey
(
'*'
));
if
(
1
!=
$ret
)
{
trigger_error
(
sprintf
(
"EVAL failed: %s"
,
$client
->
getLastError
()),
E_USER_ERROR
);
}
...
...
@@ -135,7 +135,7 @@ class Redis_Cache_Predis extends Redis_Cache_Base
public
function
flushVolatile
()
{
$client
=
$this
->
getClient
();
$ret
=
$client
->
eval
(
self
::
EVAL_DELETE_VOLATILE
,
array
(
$this
->
getKey
(
'*'
))
)
;
$ret
=
$client
->
eval
(
self
::
EVAL_DELETE_VOLATILE
,
1
,
$this
->
getKey
(
'*'
));
if
(
1
!=
$ret
)
{
trigger_error
(
sprintf
(
"EVAL failed: %s"
,
$client
->
getLastError
()),
E_USER_ERROR
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment