We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using XADD without enabling SERIALIZER_JSON
XADD
SERIALIZER_JSON
$redis->xAdd('mystream', '*', ['test_id' => '95512969651399437320899184672262088644',"test_data"=>json_encode(["a"=>1,"b"=>2])]);
When using xRead or xReadGroup with SERIALIZER_JSON enabled, the retrieved value of test_id is incorrect.
$redis->setOption(\Redis::OPT_SERIALIZER,\Redis::SERIALIZER_JSON); var_dump($redis->xRead(["mystream" => '0']));
result:
array(1) { ["mystream"]=> array(1) { ["1697193543845-0"]=> array(1) { ["test_id"]=> float(9.551296965139944E+37) } } }
$redis = new \Redis; $redis->connect('127.0.0.1', 6379); $redis->del("mystream"); $redis->xAdd('mystream', '*', ['test_id' => '95512969651399437320899184672262088644',"test_data"=>json_encode(["a"=>1,"b"=>2])]); $redis->setOption(\Redis::OPT_SERIALIZER,\Redis::SERIALIZER_JSON); var_dump($redis->xRead(["mystream" => '0']));
develop
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Expected behaviour
Actual behaviour
I'm seeing this behaviour on
Steps to reproduce, backtrace or example script
When using
XADD
without enablingSERIALIZER_JSON
When using xRead or xReadGroup with SERIALIZER_JSON enabled, the retrieved value of test_id is incorrect.
result:
I've checked
develop
branchThe text was updated successfully, but these errors were encountered: