You can convert serialized data to JSON (using the PHP 5.3 installation), save it in the database and then do the opposite (using the PHP 5.6 installation).
5.3 to JSON:
$data = unserialize($strSerializedData); $jsonData = json_encode($data);
From JSON to 5.6:
$data = json_decode($jsonData); $strSerializedData= serialize($data );
You may need to adjust the parameters that you send to json_decode according to the source data.
This parameter will depend on what data is being serialized. If your data is classes, this will not work.
In addition, the problem may be related to this note in the documentation ( here ):
5.6.0 Manipulating serialized data by replacing C: with O: forcing the instantiation of an object without calling the constructor will now fail.
Mathieu de lorimier
source share