Apply minor change in command serialization.

This commit is contained in:
Daniele Alessandri
2013-12-16 18:52:11 +01:00
parent aa4d0a05ac
commit fd1c6f244f
2 changed files with 2 additions and 2 deletions
@@ -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";