yip yip - 1 month ago 11
PHP Question

php redis extension: version changes of function name about cases?

I wonder that in which versions(php redis extension), cases of function name have changed ? like this:

$redis = new Redis();
$redis -> smembers($key);
// or
$redis -> sMembers($key);


Your answer will be appreciated. THX

Answer

The branch release 1.1 of phpredis had the syntax of $redis->smembers($key);

However the current develop phpredis has the new syntax of $redis->sMembers($key);

I am not sure if that's what you were looking for, however I recommend adjusting all old code to the new syntax for future support.