Skip to content

Commit

Permalink
More fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw committed Oct 17, 2023
1 parent 260291e commit bba7e7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ public function open()
$this->connectionString,
$errorNumber,
$errorDescription,
(float) $this->connectionTimeout ?: ini_get('default_socket_timeout'),
$this->connectionTimeout ?: ini_get('default_socket_timeout'),
$this->socketClientFlags,
stream_context_create($this->contextOptions)
);
Expand Down Expand Up @@ -762,7 +762,7 @@ public function executeCommand($name, $params = [])
$command = '*' . count($params) . "\r\n";

foreach ($params as $arg) {
$command .= '$' . mb_strlen((string) $arg, '8bit') . "\r\n" . (string) $arg . "\r\n";
$command .= '$' . mb_strlen($arg, '8bit') . "\r\n" . $arg . "\r\n";
}

\Yii::debug("Executing Redis Command: {$name}", __METHOD__);
Expand Down

0 comments on commit bba7e7e

Please sign in to comment.