Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upconfig('GET', '*') with igbinary creates a warning #301
Comments
|
Interesting. I'll see if I can replicate it for you |
|
I encountered the same problem after switching to igbinary. The warning seems to depend on which config options I'm trying to get. |
|
have same problem:
so far workaround is: redis 2.8.13 |
|
Closed via #761 |
$redis = new Redis();
$redis->connect('mem-property');
$redis->setOption(Redis::OPT_SERIALIZER, $serializer);
$config = $redis->config('GET', '*');
var_dump($config);
Using Redis::SERIALIZER_NONE or Redis::SERIALIZER_PHP returns correct result (an array with config options).
Using Redis::SERIALIZER_IGBINARY shows a series of warnings and then returns the correct result. The warnings are:
Warning: igbinary_unserialize_header: unsupported version: 1685417328, should be 1 or 2
Warning: igbinary_unserialize_header: unsupported version: 796287346, should be 1 or 2
and so on
At least that's what happens on my machine.