Notice: unserialize() [function.unserialize]: Error at offset 0 of 6 byte...
Data simply looks like array(1, 'фывапро').
Firstly I thought that there are problems in my php version. But when
i save data (with much more complicated structure that this) in
memcached it successfully serializes, unserializes without having such
problems.
So, that's why, I think, that something wrong in redis or in phpredis.
Using phpredis C module/extension.
The PHP module probably has the same bug I fixed in the Python module
last week: basically it strips trailing blanks and newlines even when it
should not.
Salvatore can fix it, or I can do it if he has no time.
L.
> The PHP module probably has the same bug I fixed in the Python module
> last week: basically it strips trailing blanks and newlines even when it
> should not.
>
> Salvatore can fix it, or I can do it if he has no time.
Hello Ludovico, I think that Rauan is using the C PHP module.
I wonder if the two pure-PHP implementations contain this bug... I
didn't used serialization bug in Retwis utf-8 is handled correctly by
the PHP4 module.
Cheers,
Salvatore