Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2022-11-08Documentation: More docblocks with examples.michael-grunder
2022-11-01Refactor PubSub commandPavlo Yatsukhnenko
2022-10-30Move `options` to the end listPavlo Yatsukhnenko
2022-10-30Issue #1894Pavlo Yatsukhnenko
Add the CH, NX, XX arguments to GEOADD
2022-10-27Fix BITOP cross-slot bugmichael-grunder
Fixes #2210
2022-10-27Refactor BRPOPLPUSH and add B[LR]POP documentationmichael-grunder
2022-10-26TOUCH commandmichael-grunder
Implement the TOUCH command and refactor several of our "variadic key" commands, which were previously all using their own specific handlers. While refactoring the code, I changed `EXISTS` to require one key (it had previously been set to require zero keys). Additonally, it looks like we had a disparity in two commands which should be idential to PhpRedis: SINTERSTORE and SUNIONSTORE. Previously, SINTERSTORE required only one argument but SUNIONSTORE 2. I simply changed SUNIONSTORE to also only require a single argument, since that argument could be an array. ```php $redis->sInterStore(['dst', 'src1', 'src2']); $redis->sUnionStore(['dst', 'src1', 'src2']); ```
2022-10-24Future proof our igbinary header checkmichael-grunder
See: #2194
2022-10-24Issue #2106Pavlo Yatsukhnenko
Expose the transferred number of bytes
2022-10-24Issue #2106Pavlo Yatsukhnenko
2022-10-23Refactor SORT and add SORT_RO commandmichael-grunder
See #2068
2022-10-23XGROUP DELCONSUMER and ENTRIESREADmichael-grunder
Refactor XGROUP and implement the new DELCONSUMER (Redis 6.2.0) and ENTRIESREAD (Redis 7.0.0) options. Additionally, add a proper phpdoc block to the stub file. See #2068
2022-10-22Implement ZRANGESTORE and add ZRANGE optionsmichael-grunder
* Add ZRANGESTORE command. * Add Redis 6.2's `REV`, `BYLEX`, and `BYSCORE` to ZRANGE options. * Refactor several ZRANGE family commands into a single reply and options handler, using PHP's new argument parsing macros. * Extend our tests to use the new ZRANGE options. See #1894
2022-10-22EVAL_RO and EVALSHA_ROmichael-grunder
Implement Redis 7.0.0's readonly eval variants See: #2068
2022-10-21Newer versions of Redis shouldn't need a long delaymichael-grunder
2022-10-19Refactor SLOWLOG commandmichael-grunder
Refactor the slowlog command to use the new argument parsing API and also change it so we no longer manually handle atomic/non-atomic logic in the handler itself.
2022-10-19Variadic CONFIG GET/SETmichael-grunder
Redis 7.0.0 allows for getting and setting multiple config values as an atomic operation. In order to support this while maintaining backward compatibility, the CONFIG command is reworked to also accept an array of values or keys and values. See: #2068
2022-10-16INFO with multiple sectionsmichael-grunder
See #2068
2022-10-13Refactor BITPOS and implement BIT/BYTE option.michael-grunder
Update BITPOS to use the new argument parsing macros as well as implement Redis 7.0.0's BIT/BYTE modifier. Additionally I changed `int $bit` to `bool $bit` as its a more appropriate datatype. See #2068
2022-10-13Implement Redis 7.0.0 [P]EXPIRE[AT] optionsmichael-grunder
See #2068
2022-10-12RedisCluster stub fixes (#2183)Michael Grunder
RedisCluster stub fixes I can now run RedisCluster unit tests within a PHP build tree build in debug mode without any deprecation warnings or arginfo/zpp errors.
2022-10-11More redis.stub.php and PHP 8.2 deprecation fixes.michael-grunder
With this commit, I can now run the full `--class Redis` unit test suite inside of a PHP8.2.x buiild tree and have them pass and not throw any fatal zpp argument errors.
2022-10-11Refactor FLUSHDB and update docs.michael-grunder
Fixes #2096
2022-10-11Refactor and fix XPENDING handlermichael-grunder
Fixes #2128
2022-10-11Refactor XINFO handlermichael-grunder
Fixes #2119
2022-10-10Implement CONFIG REWRITEmichael-grunder
Closes #847
2022-10-10Suppress a valgrind false positivemichael-grunder
2022-10-08Add new Redis 6.2.0 XTRIM optionsmichael-grunder
Fixes #1961
2022-10-08Implement new RESTORE optionsmichael-grunder
Add the new RESTORE options REPLACE, ABSTTL, FREQ <freq> and IDLETIME <idletime> Fixes #1410
2022-10-08[B]LMPOP and [B]ZMPOP commandsmichael-grunder
Implement the new Redis 7.0.0 commands to pop multiple elements from one or more lists/zsets. Additionally, remove INTERNAL_FUNCTION_PARAMETERS from the redis_sock_read_multibulk_reply_zval helper function as it wasn't actually being used.
2022-10-08WIP: Update stubs so the tests pass in strict modemichael-grunder
These changes allow the PHP 8 unit tests to pass even when zpp strict mode is enabled. I'm not exactly sure which setting causes the issue, but without these changes I get many `zpp` errors if I run the tests inside of a PHP build tree.
2022-10-03Relax OBJECT idletime tests to avoid false failures.michael-grunder
Instead of testing that `OBJECT IDLETIME` returns exactly zero after updating a key in our tests, just make sure PhpRedis returns us some numeric value. We can't really test for a specific number of elapsed seconds in CI as the VMs may be randomly preempted at times beyond our control, causing the tests to "fail" even though there was no actual failure.
2022-10-02EXPIRETIME and PEXPIRETIMEmichael-grunder
2022-10-01LCS commandmichael-grunder
Implement the Redis 7.0.0 LCS command with tests.
2022-10-01SINTERCARD and ZINTERCARD commandsmichael-grunder
Implement Redis 7.0.0 commands SINTERCARD and ZINTERCARD.
2022-10-01Implement CONFIG RESETSTATmichael-grunder
Rework the CONFIG command and add RESETSTAT variant. Fixes #1673
2022-10-01Add back a default switch case for setoption handlermichael-grunder
We can't use `EMPTY_SWITCH_DEFAULT_CASE` here as the underlying macro will actually panic, as it calls `ZEND_UNREACHABLE` under the hood.
2022-09-29Make sure we set an error for key based scansmichael-grunder
See #1661
2022-09-27BLPOP with a float timeoutmichael-grunder
See #2157
2022-09-18Return false or NULL on empty lpos response (#2151)Michael Grunder
Return false or NULL on empty lpos response To be consistent with other PhpRedis methods, we should return either false or NULL when LPOS returns no results, depening on NULL_MBULK_AS_NULL setting.
2022-09-15Add 'BIT'/'BYTE' modifier to BITCOUNT + tests (#2149)Michael Grunder
BITCOUNT can take a third optional argument ('BIT', or 'BYTE'). Additionally add a specific test for BITCOUNT that tests all of the legal ways it can be called in PhpRedis.
2022-09-07Redis::client commandissue-1894-clientPavlo Yatsukhnenko
2022-08-03Issue #1943Pavlo Yatsukhnenko
Add lPos command.
2022-06-18Fix testsPavlo Yatsukhnenko
2022-06-07Issue #1894issue-1894-pop-countPavlo Yatsukhnenko
Add the COUNT argument to LPOP and RPOP
2022-05-26Fix tests on Redis 7.0Pavlo Yatsukhnenko
2022-04-12Issue #1894Pavlo Yatsukhnenko
Add Redis::hRandField command
2022-04-11Issue #1894Pavlo Yatsukhnenko
2022-01-30A small test for key scanning in RedisArraymichael-grunder
See: #2055
2022-01-26Fix LZF decompression logic. (#2065)Michael Grunder
* Fix LZF decompression logic. Rework how we decompress LZF data. Previously it was possible to encounter a double-free, if the error was not E2BIG. * .