Fix `HMGET` where hash fields have an integer prefix · phpredis/phpredis@834d2b3 · GitHub
Skip to content

Commit 834d2b3

Browse files
Fix HMGET where hash fields have an integer prefix
We were incorrectly ignoring errors when calling `is_numeric_string`, meaning we would truncate hash fields that had integer prefixes. ```php $redis->hmget('hash', ['123notaninteger']); // Would actually execute: // HMGET hash 123 ``` Fixes #2731
1 parent 2f2d811 commit 834d2b3

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

redis_commands.c

Lines changed: 1 addition & 1 deletion

tests/RedisTest.php

Lines changed: 18 additions & 0 deletions

0 commit comments

Comments
 (0)