Skip to content

Commit

Permalink
Fixed the implode arguments order
Browse files Browse the repository at this point in the history
  • Loading branch information
adventgroup committed Feb 22, 2021
1 parent dc9d3c6 commit ca23d3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Redisent/Redisent.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function __call($name, $args) {

/* Build the Redis unified protocol command */
array_unshift($args, strtoupper($name));
$command = sprintf('*%d%s%s%s', count($args), CRLF, implode(array_map(array($this, 'formatArgument'), $args), CRLF), CRLF);
$command = sprintf('*%d%s%s%s', count($args), CRLF, implode(CRLF, array_map(array($this, 'formatArgument'), $args)), CRLF);

/* Open a Redis connection and execute the command */
for ($written = 0; $written < strlen($command); $written += $fwrite) {
Expand Down

0 comments on commit ca23d3f

Please sign in to comment.