rediska icon indicating copy to clipboard operation
rediska copied to clipboard

Rediska_Serializer_Adapter_Json::unserialize does not respect decoding options.

Open iwsfg opened this issue 10 years ago • 0 comments

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.

iwsfg avatar May 08 '15 13:05 iwsfg