Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Update Redisent.php #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/Redisent/Redisent.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ 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);

/* old syntax was not working on php 8.1 it's provide impload syntax error */
$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