Fix SIGABRT in PHP 8.4 with RedisArray

Same fix as 6e5360d1, with PHP switching from `ZEND_ASSUME` to `ZEND_ASSERT` in zend_hash_str_update_ptr.

Fixes #2648
This commit is contained in:
Rory
2025-04-08 16:31:38 +12:00
committed by Michael Grunder
parent 614b86e457
commit 3c64b33ffe

View File

@@ -91,7 +91,7 @@ ra_init_function_table(RedisArray *ra)
zend_hash_init(ra->pure_cmds, 0, NULL, NULL, 0);
#define ra_add_pure_cmd(cmd) \
zend_hash_str_update_ptr(ra->pure_cmds, cmd, sizeof(cmd) - 1, NULL);
zend_hash_str_add_empty_element(ra->pure_cmds, cmd, sizeof(cmd) - 1);
ra_add_pure_cmd("EXISTS");
ra_add_pure_cmd("GET");