There was an error while loading. Please reload this page.
1 parent bfaa89a commit 60d8b67Copy full SHA for 60d8b67
1 file changed
redis_array.c
@@ -924,6 +924,9 @@ PHP_METHOD(RedisArray, mget)
924
unsigned int key_len;
925
char kbuf[40], *key_lookup;
926
927
+ /* Handle the possibility that we're a reference */
928
+ ZVAL_DEREF(data);
929
+
930
/* phpredis proper can only use string or long keys, so restrict to that here */
931
if (Z_TYPE_P(data) != IS_STRING && Z_TYPE_P(data) != IS_LONG) {
932
php_error_docref(NULL TSRMLS_CC, E_ERROR, "MGET: all keys must be strings or longs");
0 commit comments