Files
phpredis/tests
derrickschoen 409508afa2 fix: Accept null for $seeds in RedisCluster::__construct
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>
2026-02-26 14:35:36 -08:00
..
2024-05-30 12:10:46 -07:00
2011-08-18 09:39:14 +01:00
2026-02-18 09:46:55 -08:00
2024-05-30 12:10:46 -07:00
2026-02-18 09:46:55 -08:00
2026-02-18 09:46:55 -08:00
2020-06-24 17:00:01 -07:00
2022-10-09 16:15:02 -07:00