rediska
rediska copied to clipboard
Rediska_Serializer_Adapter_Json::unserialize does not respect decoding options.
It always retrieving json decoded using StdClass-es, even if options says it should be associative arrays (and it should be by default). Line 90 should be changed from
$decodedValue = json_decode($value);
to
$decodedValue = json_decode($value, $this->_options['decodetype'], $this->_options['decodedepth']);
also const DECODE_TYPE_OBJECT is unusued and probably should not be defined.
And I think I must point out that without changing default behavior back to objects it will be a breaking change.