php 5.3 --> 5.6 memcacheD extension sessions compatibility issues -


when upgrade php 5.3 --> php 5.6 , use same version of memcached extension same serialization , configuration settings sessions no longer valid.

even when same settings; session data doesn't persist between php versions upgrades. (i have load balanced servers , able test between them)

php serialization not compatible between php 5.3 , 5.6. php breaking changes says: "unserialize() fail if passed serialized data has been manipulated attempt instantiate object without calling constructor."

however, i've found serialization broken when 1 version deserializes version serializes. ran issue serialized data cached in memcached , in database records multiple versions of php attempting access same serialized data.

http://php.net/manual/en/migration56.changed-functions.php

a solution not use php serialization , use json or other standardized data serialization instead.

we had write "translation" step read both versions of data , write new data serialization format moving (json in our instance).


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -