mirror of
https://github.com/phpredis/phpredis.git
synced 2026-06-19 07:35:31 +00:00
409508afa2
The stub declares $seeds as ?array but the C code used format specifier 'a' (non-nullable) instead of 'a!' in zend_parse_method_parameters. This caused new RedisCluster(null, null) to throw TypeError instead of RedisClusterException, contradicting the declared type signature. Also treat z_seeds == NULL the same as ZEND_NUM_ARGS() < 2 so that explicitly passing null falls through to INI-based seed loading, matching the behaviour when the argument is omitted entirely. Fixes GH-2810. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>