-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
Description
Expected behaviour
Clone should result in either an exception or an independent working object.
Actual behaviour
Using the cloned Redis object results in a segfault.
I'm seeing this behaviour on
- OS: Linux 5.6.13
- Redis: 6.0.1
- PHP: 7.4.5
- phpredis: 5.2.1
Steps to reproduce, backtrace or example script
$redis0 = new Redis();
$redis1 = clone $redis0;
$redis1->get('a');
Segmentation fault (core dumped)
It doesn't matter if you call ->connect().
I've checked
- There is no similar issue from other users
- Issue isn't fixed in
developbranch => haven't checked sorry
Reactions are currently unavailable