refactor: Modernize redis_session.c logic

* Switch to using `zend_string*` in a lot of places that were previously
  deconstructing the `zend_string` into the char and len.
* Various other minor bits of cleanup.
This commit is contained in:
michael-grunder
2026-06-08 15:20:05 -07:00
committed by Michael Grunder
parent ae74b64be7
commit 738cedd284
2 changed files with 55 additions and 62 deletions
+2 -2
View File
@@ -359,8 +359,8 @@ zend_string *cluster_hash_seeds(zend_string **seeds, uint32_t nseeds);
/* Get the current time in milliseconds */
long long mstime(void);
PHP_REDIS_API short cluster_send_command(redisCluster *c, short slot, const char *cmd,
int cmd_len);
PHP_REDIS_API short cluster_send_command(redisCluster *c, short slot,
const char *cmd, int cmd_len);
PHP_REDIS_API void cluster_disconnect(redisCluster *c, int force);