8000 Fix SIGABRT in PHP 8.4 with RedisArray · phpredis/phpredis@3c64b33 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3c64b33

Browse files
Novynnmichael-grunder
authored andcommitted
Fix SIGABRT in PHP 8.4 with RedisArray
Same fix as 6e5360d, with PHP switching from `ZEND_ASSUME` to `ZEND_ASSERT` in zend_hash_str_update_ptr. Fixes #2648
1 parent 614b86e commit 3c64b33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redis_array_impl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ ra_init_function_table(RedisArray *ra)
9191
zend_hash_init(ra->pure_cmds, 0, NULL, NULL, 0);
9292

9393
#define ra_add_pure_cmd(cmd) \
94-
zend_hash_str_update_ptr(ra->pure_cmds, cmd, sizeof(cmd) - 1, NULL);
94+
zend_hash_str_add_empty_element(ra->pure_cmds, cmd, sizeof(cmd) - 1);
9595

9696
ra_add_pure_cmd("EXISTS");
9797
ra_add_pure_cmd("GET");

0 commit comments

Comments
 (0)
0