diff options
author | Pavlo Yatsukhnenko <yatsukhnenko@users.noreply.github.com> | 2022-04-19 08:38:20 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-19 08:38:20 +0300 |
commit | eb6fdd936730b5656412c0fd08f232915aa431bb (patch) | |
tree | aa511c9878380f85bbcad33dfa65dccc79f8f3dc | |
parent | 55bf0202dd674c70e147fc50e72298719e23391e (diff) | |
parent | 0a160685cd199929eee0fea214bd4f25ab8f3326 (diff) |
Merge pull request #2095 from phpredis/issue-1894-setexat
Issue #1894
-rw-r--r-- | redis_commands.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/redis_commands.c b/redis_commands.c index 47f74904..34bf0b09 100644 --- a/redis_commands.c +++ b/redis_commands.c @@ -1594,7 +1594,11 @@ int redis_set_cmd(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock, ZEND_HASH_FOREACH_STR_KEY_VAL(kt, zkey, v) { ZVAL_DEREF(v); /* Detect PX or EX argument and validate timeout */ - if (zkey && (ZSTR_STRICMP_STATIC(zkey, "EX") || ZSTR_STRICMP_STATIC(zkey, "PX"))) { + if (zkey && (ZSTR_STRICMP_STATIC(zkey, "EX") || + ZSTR_STRICMP_STATIC(zkey, "PX") || + ZSTR_STRICMP_STATIC(zkey, "EXAT") || + ZSTR_STRICMP_STATIC(zkey, "PXAT")) + ) { exp_set = 1; /* Set expire type */ |