phpredis

phpredis

Member Since 6 years ago

Experience Points
0
follower
Lessons Completed
0
follow
Best Reply Awards
2
repos
Jun
23
7 hours ago
started
started time in 1 minute ago
started
started time in 1 hour ago
started
started time in 2 hours ago
started
started time in 4 hours ago
Jun
22
1 day ago
Activity icon
issue

michael-grunder issue comment phpredis/phpredis

michael-grunder
michael-grunder

Separate compression and create utility methods

This commit splits compression and serialization into two distinct parts and adds some utility functions so the user can compress/uncompress or pack/unpack data explicily.

See #1939

michael-grunder
michael-grunder

Merged, I will get working on 5.3.5-rc1

Activity icon
delete

michael-grunder in phpredis/phpredis delete branch refactor-compression

deleted time in 14 hours ago
push

michael-grunder push phpredis/phpredis

michael-grunder
michael-grunder

Separate compression and create utility methods

This commit splits compression and serialization into two distinct parts and adds some utility functions so the user can compress/uncompress or pack/unpack data explicily.

See #1939

michael-grunder
michael-grunder

Merge pull request #1971 from phpredis/refactor-compression

commit sha: c3ab4a25bc186493b6cf73d94c469bab5f134da9

push time in 14 hours ago
pull request

michael-grunder pull request phpredis/phpredis

michael-grunder
michael-grunder

Separate compression and create utility methods

This commit splits compression and serialization into two distinct parts and adds some utility functions so the user can compress/uncompress or pack/unpack data explicily.

See #1939

push

michael-grunder push phpredis/phpredis

michael-grunder
michael-grunder

[WIP] Issue #1894

Add CLIENT INFO subcommand.

michael-grunder
michael-grunder

Merge pull request #1965 from phpredis/issue-1894-client-info

[WIP] Issue #1894

michael-grunder
michael-grunder

[WIP] Issue #1894

Add GT and LT options to ZADD.

michael-grunder
michael-grunder

Merge pull request #1968 from phpredis/issue-1894-zadd

[WIP] Issue #1894

michael-grunder
michael-grunder

Separate compression and create utility methods

This commit splits compression and serialization into two distinct parts and adds some utility functions so the user can compress/uncompress or pack/unpack data explicily.

See #1939

commit sha: 4cb4cd0ee26fdd1a07f468b976f990dbb9de7ed0

push time in 14 hours ago
Jun
19
4 days ago
started
started time in 4 days ago
Jun
18
5 days ago
Activity icon
fork

KimiyaZargari forked phpredis/phpredis

⚡ A PHP extension for Redis
KimiyaZargari Updated
fork time in 4 days ago
Jun
17
6 days ago
started
started time in 5 days ago
Jun
16
1 week ago
Activity icon
issue

yatsukhnenko issue comment phpredis/phpredis

yatsukhnenko
yatsukhnenko

RedisSentinel ERR unknown command `ECHO`, with args beginning with: `phpredis:60b98b3568f12:163f77ac`

I'm seeing this behaviour on

  • OS: Centos7
  • Redis: 5.0.3
  • PHP: 7.2.24
  • phpredis: 5.3.4

code

$s = new RedisSentinel('127.0.0.1', 26379, 0, 'sentinel'); $s->getMasterAddrByName('redis67') then I tcpdump

IP 127.0.0.1.26379 > 127.0.0.1.48460: tcp 92 E.....@E{........g..Lnme.]x.gP..V.x..-ERR unknown command ECHO, with args beginning with: phpredis:60b98c66c0e01:51ba8313,

IP 127.0.0.1.48460 > 127.0.0.1.26379: tcp 0 E..(#3.........Lg.]x.gnmf.P..V.... IP 127.0.0.1.48460 > 127.0.0.1.26379: tcp 0 E..(#2.........Lg.]x.gnmf.P..V.... IP 127.0.0.1.26379 > 127.0.0.1.48460: tcp 0 E..(..@E.........g..Lnmf.]x.hP..V.... IP 127.0.0.1.50270 > 127.0.0.1.26379: tcp 0 E..0.o@.@KV.........^g.........p....$......... IP 127.0.0.1.48460 > 127.0.0.1.26379: tcp 0 E..(#1.........Lg.]x.hnmf.P..V.... IP 127.0.0.1.26379 > 127.0.0.1.50270: tcp 0 E..0..@g..^..0.....p....$......... IP 127.0.0.1.50270 > 127.0.0.1.26379: tcp 0 E..(.p@.@K].........^g.......0.P..V.... IP 127.0.0.1.50270 > 127.0.0.1.26379: tcp 61 E..e.q@.@K..........^g.......0.P..V.Y..*3 $8 SENTINEL $23 get-master-addr-by-name $7 redis67

IP 127.0.0.1.26379 > 127.0.0.1.50270: tcp 0 E..(.p@.@g..^..0....4P..V.... IP 127.0.0.1.26379 > 127.0.0.1.50270: tcp 35 E..K.q@.@g..^..0....4P..V.?..2 $14 ...* $4 6379

IP 127.0.0.1.50270 > 127.0.0.1.26379: tcp 0 E..(.r@.@K[.........^g....4..1.P..V.... IP 127.0.0.1.46504 > 127.0.0.1.26379: tcp 52 E....@g.$.. [.o,P..V.P..*2 $4 ECHO $31 phpredis:60b98c67369d5:ccf677b1

IP 127.0.0.1.26379 > 127.0.0.1.46504: tcp 92 E...-@.@..D........g...[.o,$..TP..V.x..-ERR unknown command ECHO, with args beginning with: phpredis:60b98c67369d5:ccf677b1`,

yatsukhnenko
yatsukhnenko

Thanks @c10h15n I will try to find another solution

Activity icon
issue

yatsukhnenko issue phpredis/phpredis

yatsukhnenko
yatsukhnenko

PHP Warning: session_start(): Failed to read session data: redis (path: 127.0.0.1:6479?database=5)

Expected behaviour

Actual behaviour

I'm seeing this behaviour on

  • OS:
  • Redis:
  • PHP:
  • phpredis:

Steps to reproduce, backtrace or example script

I've checked

  • There is no similar issue from other users
  • Issue isn't fixed in develop branch PHP 版本 7.3.8-1+ubuntu16.04.1+deb.sury.org+1 PHPRedis 版本 4.3.0 Redis 服务器 v=6.0.11
Activity icon
issue

yatsukhnenko issue comment phpredis/phpredis

yatsukhnenko
yatsukhnenko

PHP Warning: session_start(): Failed to read session data: redis (path: 127.0.0.1:6479?database=5)

Expected behaviour

Actual behaviour

I'm seeing this behaviour on

  • OS:
  • Redis:
  • PHP:
  • phpredis:

Steps to reproduce, backtrace or example script

I've checked

  • There is no similar issue from other users
  • Issue isn't fixed in develop branch PHP 版本 7.3.8-1+ubuntu16.04.1+deb.sury.org+1 PHPRedis 版本 4.3.0 Redis 服务器 v=6.0.11
pull request

yatsukhnenko pull request phpredis/phpredis

yatsukhnenko
yatsukhnenko

Issue #1974

Because sentinel doesn't support ECHO command replace it with PING.

Activity icon
issue

yatsukhnenko issue comment phpredis/phpredis

yatsukhnenko
yatsukhnenko

Issue #1974

Because sentinel doesn't support ECHO command replace it with PING.

yatsukhnenko
yatsukhnenko

Also PING in sentinel works differently than in server so this solution is not acceptable

started
started time in 6 days ago
Activity icon
issue

c10h15n issue comment phpredis/phpredis

c10h15n
c10h15n

RedisSentinel ERR unknown command `ECHO`, with args beginning with: `phpredis:60b98b3568f12:163f77ac`

I'm seeing this behaviour on

  • OS: Centos7
  • Redis: 5.0.3
  • PHP: 7.2.24
  • phpredis: 5.3.4

code

$s = new RedisSentinel('127.0.0.1', 26379, 0, 'sentinel'); $s->getMasterAddrByName('redis67') then I tcpdump

IP 127.0.0.1.26379 > 127.0.0.1.48460: tcp 92 E.....@E{........g..Lnme.]x.gP..V.x..-ERR unknown command ECHO, with args beginning with: phpredis:60b98c66c0e01:51ba8313,

IP 127.0.0.1.48460 > 127.0.0.1.26379: tcp 0 E..(#3.........Lg.]x.gnmf.P..V.... IP 127.0.0.1.48460 > 127.0.0.1.26379: tcp 0 E..(#2.........Lg.]x.gnmf.P..V.... IP 127.0.0.1.26379 > 127.0.0.1.48460: tcp 0 E..(..@E.........g..Lnmf.]x.hP..V.... IP 127.0.0.1.50270 > 127.0.0.1.26379: tcp 0 E..0.o@.@KV.........^g.........p....$......... IP 127.0.0.1.48460 > 127.0.0.1.26379: tcp 0 E..(#1.........Lg.]x.hnmf.P..V.... IP 127.0.0.1.26379 > 127.0.0.1.50270: tcp 0 E..0..@g..^..0.....p....$......... IP 127.0.0.1.50270 > 127.0.0.1.26379: tcp 0 E..(.p@.@K].........^g.......0.P..V.... IP 127.0.0.1.50270 > 127.0.0.1.26379: tcp 61 E..e.q@.@K..........^g.......0.P..V.Y..*3 $8 SENTINEL $23 get-master-addr-by-name $7 redis67

IP 127.0.0.1.26379 > 127.0.0.1.50270: tcp 0 E..(.p@.@g..^..0....4P..V.... IP 127.0.0.1.26379 > 127.0.0.1.50270: tcp 35 E..K.q@.@g..^..0....4P..V.?..2 $14 ...* $4 6379

IP 127.0.0.1.50270 > 127.0.0.1.26379: tcp 0 E..(.r@.@K[.........^g....4..1.P..V.... IP 127.0.0.1.46504 > 127.0.0.1.26379: tcp 52 E....@g.$.. [.o,P..V.P..*2 $4 ECHO $31 phpredis:60b98c67369d5:ccf677b1

IP 127.0.0.1.26379 > 127.0.0.1.46504: tcp 92 E...-@.@..D........g...[.o,$..TP..V.x..-ERR unknown command ECHO, with args beginning with: phpredis:60b98c67369d5:ccf677b1`,

c10h15n
c10h15n

@c10h15n could you test changes from issue-1974 branch?

test worked well, no more ERR ECHO message

tcpdump -nntlqA port 26379 -i lo|grep ECHO tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on lo, link-type EN10MB (Ethernet), capture size 65535 bytes

^C1287 packets captured 2590 packets received by filter 14 packets dropped by kernel

Activity icon
issue

yatsukhnenko issue comment phpredis/phpredis

yatsukhnenko
yatsukhnenko

PHP 7.3 - session_start(): Failed to read session data: redis (path: tcp://localhost?auth=xxx)

Expected behaviour

no error :)

Actual behaviour

After upgrade from latest php7.2 to latest php 7.3 getting this error: session_start(): Failed to read session data: redis (path: tcp://localhost?auth=xxx)

I'm seeing this behaviour on

  • OS: Debian 10
  • Redis: 5.0.5
  • PHP: 7.3.8
  • phpredis: 5.0.2
yatsukhnenko
yatsukhnenko

@tangzhiqiangh try to use tcp://127.0.0.1:6479?database=5 as session.save_path

Activity icon
issue

tangzhiqiangh issue phpredis/phpredis

tangzhiqiangh
tangzhiqiangh

PHP Warning: session_start(): Failed to read session data: redis (path: 127.0.0.1:6479?database=5)

Expected behaviour

Actual behaviour

I'm seeing this behaviour on

  • OS:
  • Redis:
  • PHP:
  • phpredis:

Steps to reproduce, backtrace or example script

I've checked

  • There is no similar issue from other users
  • Issue isn't fixed in develop branch PHP 版本 7.3.8-1+ubuntu16.04.1+deb.sury.org+1 PHPRedis 版本 4.3.0 Redis 服务器 v=6.0.11
Activity icon
issue

tangzhiqiangh issue comment phpredis/phpredis

tangzhiqiangh
tangzhiqiangh

PHP 7.3 - session_start(): Failed to read session data: redis (path: tcp://localhost?auth=xxx)

Expected behaviour

no error :)

Actual behaviour

After upgrade from latest php7.2 to latest php 7.3 getting this error: session_start(): Failed to read session data: redis (path: tcp://localhost?auth=xxx)

I'm seeing this behaviour on

  • OS: Debian 10
  • Redis: 5.0.5
  • PHP: 7.3.8
  • phpredis: 5.0.2
tangzhiqiangh
tangzhiqiangh

why? Failed to read session data: redis (path: 127.0.0.1:6479?database=5) in /var/www/qa/acount.php on line 3 session.save_path Can't define database? PHP 版本 7.3.8-1+ubuntu16.04.1+deb.sury.org+1 PHPRedis 版本 4.3.0 Redis 服务器 v=6.0.11

Jun
15
1 week ago
Activity icon
issue

ethaniel issue comment phpredis/phpredis

ethaniel
ethaniel

When will RedisArray support persistense?

I am getting occasional "Redis server went away" on lazy load and noticed that my redis servers are hammered with open/closed connections. I was wondering if RedisArray will support persistense?

ethaniel
ethaniel

Haha, yes, perhaps need to add to the manual? I was looking for "persistent" (as per the RedisCluster), was not expecting it to be "pconnect".

Activity icon
issue

tangzhiqiangh issue phpredis/phpredis

tangzhiqiangh
tangzhiqiangh

PHP session handler specified database is invalid

Why is the database specified by the PHP session handler invalid

parameter? database is useless,Unable to specify Redis database

Activity icon
issue

yatsukhnenko issue comment phpredis/phpredis

yatsukhnenko
yatsukhnenko

When will RedisArray support persistense?

I am getting occasional "Redis server went away" on lazy load and noticed that my redis servers are hammered with open/closed connections. I was wondering if RedisArray will support persistense?

yatsukhnenko
yatsukhnenko

There are pconnect constructor option and redis.arrays.pconnect INI setting

started
started time in 1 week ago
started
started time in 1 week ago
Activity icon
issue

michael-grunder issue comment phpredis/phpredis

michael-grunder
michael-grunder

Issue #1974

Because sentinel doesn't support ECHO command replace it with PING.

michael-grunder
michael-grunder

The PR is fine, the only hiccup is that PING didn't used to take an argument, so this will break compatibility with very old versions of Redis.

redis/redis@2264b9816c

Jun
14
1 week ago
Activity icon
issue

ethaniel issue phpredis/phpredis

ethaniel
ethaniel

When will RedisArray support persistense?

I am getting occasional "Redis server went away" on lazy load and noticed that my redis servers are hammered with open/closed connections. I was wondering if RedisArray will support persistense?