Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
UserAdminV2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
庄欣
UserAdminV2
Commits
85936b3c
Commit
85936b3c
authored
Nov 16, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug and shorten exception message.
parent
635ba52a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
laravel/redis.php
+9
-8
No files found.
laravel/redis.php
View file @
85936b3c
...
...
@@ -93,25 +93,25 @@ class Redis {
{
fwrite
(
$this
->
connect
(),
$this
->
command
(
$method
,
(
array
)
$parameters
));
$
er
sponse
=
trim
(
fgets
(
$this
->
connection
,
512
));
$
re
sponse
=
trim
(
fgets
(
$this
->
connection
,
512
));
switch
(
substr
(
$
er
sponse
,
0
,
1
))
switch
(
substr
(
$
re
sponse
,
0
,
1
))
{
case
'-'
:
throw
new
\RuntimeException
(
'Redis error: '
.
substr
(
trim
(
$
er
sponse
),
4
));
throw
new
\RuntimeException
(
'Redis error: '
.
substr
(
trim
(
$
re
sponse
),
4
));
case
'+'
:
case
':'
:
return
$this
->
inline
(
$
er
sponse
);
return
$this
->
inline
(
$
re
sponse
);
case
'$'
:
return
$this
->
bulk
(
$
er
sponse
);
return
$this
->
bulk
(
$
re
sponse
);
case
'*'
:
return
$this
->
multibulk
(
$
er
sponse
);
return
$this
->
multibulk
(
$
re
sponse
);
default
:
throw
new
\UnexpectedValueException
(
"Unknown
response from Redis server: "
.
substr
(
$er
sponse
,
0
,
1
));
throw
new
\UnexpectedValueException
(
"Unknown
Redis response: "
.
substr
(
$re
sponse
,
0
,
1
));
}
}
...
...
@@ -261,4 +261,4 @@ class Redis {
fclose
(
$this
->
connection
);
}
}
}
\ No newline at end of file
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