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
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
Steps to reproduce, backtrace or example script
It doesn't matter if you call ->connect().
I've checked
developbranch => haven't checked sorry