Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix stub of RedisCluster::zremrangebyrank#2623

Open
adsr wants to merge 1 commit into
phpredis:developphpredis/phpredis:developfrom
adsr:zRemRangeByRank_paramsadsr/phpredis:zRemRangeByRank_paramsCopy head branch name to clipboard
Open

Fix stub of RedisCluster::zremrangebyrank#2623
adsr wants to merge 1 commit into
phpredis:developphpredis/phpredis:developfrom
adsr:zRemRangeByRank_paramsadsr/phpredis:zRemRangeByRank_paramsCopy head branch name to clipboard

Conversation

@adsr

@adsr adsr commented Feb 11, 2025

Copy link
Copy Markdown

The stub is currently defined as

RedisCluster|int|false zremrangebyrank(string $key, string $min, string $max)

however the underlying function expects ints

phpredis/redis_cluster.c

Lines 1392 to 1397 in abb0f6c

/* {{{ proto long RedisCluster::zremrangebyrank(string k, long s, long e) */
PHP_METHOD(RedisCluster, zremrangebyrank) {
CLUSTER_PROCESS_KW_CMD("ZREMRANGEBYRANK", redis_key_long_long_cmd,
cluster_long_resp, 0);
}
/* }}} */

I re-ran gen_stub.php which updated some other stuff.

doctum fatals with my local version of PHP so I didn't update docs.

@michael-grunder michael-grunder added this to the 7.0 milestone Feb 11, 2025
@michael-grunder

Copy link
Copy Markdown
Member

Good catch.

To be safe we probably have to dever merging this until we are preparing v7.0 as it is technicall BC. I already accidentally broke BC in 6.1.0 and don't want to do that again. 😅

@michael-grunder michael-grunder added breaking change major-version-bump Things we can't merge until a major version change labels Oct 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking change major-version-bump Things we can't merge until a major version change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.