Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Backport of improvements #1973

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 36 commits into
base: develop
Choose a base branch
Loading
from
Open
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
f11352f
refactor based on develop branch
iliaal Jun 13, 2020
94212a9
redis clone
iliaal Jun 18, 2020
b9713e5
Create new socket on clone
iliaal Jun 19, 2020
e9e47be
Merge branch 'develop' of https://github.com/phpredis/phpredis into r…
iliaal Jul 18, 2020
7c43c54
Added auth support
iliaal Jul 21, 2020
d2c927b
5.3.2
yatsukhnenko Oct 22, 2020
d6458ca
Merge branch 'develop' into redis_clone_develop
iliaal Jan 30, 2021
87297cb
Fixed#1895
defender-11 Jan 22, 2021
270b4db
PHP 8 compatibility Windows
Jan-E Sep 22, 2020
9d0cd31
Prepare 5.3.3 release
michael-grunder Feb 1, 2021
cd05a34
Disable clone handlers for Redis and RedisCluster.
michael-grunder Feb 1, 2021
b50b361
Update changelog for 5.3.3
michael-grunder Feb 1, 2021
9dbd3c5
5.3.2
michael-grunder Feb 1, 2021
edc724e
Pass compression flag when performing HMGET (#1945)
aolley Mar 10, 2021
c48b3a2
Fix ZSTD decompression on bad data.
michael-grunder Feb 26, 2021
fe9011d
Normalize Redis callback prototypes and stop typecasting. (#1935)
michael-grunder Feb 25, 2021
c996ac3
Prepare for 5.3.4 release
michael-grunder Mar 22, 2021
4b13944
Fix PhpRedis session tests to soften timing issues
michael-grunder Mar 23, 2021
d98b9f2
Prepare for 5.3.4 v2
michael-grunder Mar 23, 2021
e67e1a1
More Travis-CI fixes
michael-grunder Mar 23, 2021
e3426c1
5.3.4 - Move the date back one day
michael-grunder Mar 24, 2021
f03092a
Merge branch 'develop' of github.com:phpredis/phpredis into redis_clo…
iliaal May 30, 2021
67a92c5
Merge branch 'redis_clone_develop' into develop_simple_strings
iliaal May 30, 2021
eec2488
fixes
iliaal May 30, 2021
3b67488
merge
iliaal May 30, 2021
d6d53be
Merge branch 'release/5.3.4' of github.com:phpredis/phpredis into dev…
iliaal May 30, 2021
1869069
1st patch
iliaal May 30, 2021
ee32e4d
fixed checks
iliaal May 10, 2020
7c67fc5
fixed checks
iliaal May 10, 2020
5c42e48
Fixed check
iliaal May 10, 2020
357f92e
merge
iliaal May 30, 2021
91ffdd5
Added checks
iliaal May 30, 2021
dac3831
Added lz4 test
iliaal May 31, 2021
1aa5210
removed redundant code
iliaal May 31, 2021
46b76e8
lz4 safety checks
iliaal Aug 9, 2021
d593ad1
refine redis header
iliaal Aug 10, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added lz4 test
  • Loading branch information
iliaal committed May 31, 2021
commit dac3831d0444a32e35592926b7e9b0d4c43c4c93
15 changes: 15 additions & 0 deletions 15 tests/RedisTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4815,6 +4815,21 @@ public function testCompressionLZ4()
$this->checkCompression(Redis::COMPRESSION_LZ4, 9);
}

public function testCompressionLZ4Limited()
{
if (!defined('Redis::COMPRESSION_LZ4')) {
$this->markTestSkipped();
}

$checks = [
"test123" => strlen("test123"),
str_repeat('a', 101) => 17,
random_bytes(110) => 110,
];

$this->limitedCompressionCheck($checks, Redis::COMPRESSION_ZSTD);
}

private function checkCompression($mode, $level)
{
$this->assertTrue($this->redis->setOption(Redis::OPT_COMPRESSION, $mode) === TRUE); // set ok
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.