mirror of
https://github.com/predis/predis.git
synced 2026-08-28 03:02:04 +00:00
Apply minor change in command serialization.
This commit is contained in:
@@ -36,7 +36,7 @@ class TextCommandSerializer implements CommandSerializerInterface
|
||||
|
||||
$buffer = "*{$reqlen}\r\n\${$cmdlen}\r\n{$commandId}\r\n";
|
||||
|
||||
for ($i = 0; $i < $reqlen - 1; $i++) {
|
||||
for ($i = 0, $reqlen--; $i < $reqlen; $i++) {
|
||||
$argument = $arguments[$i];
|
||||
$arglen = strlen($argument);
|
||||
$buffer .= "\${$arglen}\r\n{$argument}\r\n";
|
||||
|
||||
Reference in New Issue
Block a user