From 3c64b33ffe06a8929d61dd2b71ae5ea08014a455 Mon Sep 17 00:00:00 2001 From: Rory Date: Tue, 8 Apr 2025 16:31:38 +1200 Subject: [PATCH] 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 --- redis_array_impl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redis_array_impl.c b/redis_array_impl.c index 78b6d16..a8d0687 100644 --- a/redis_array_impl.c +++ b/redis_array_impl.c @@ -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");