Skip to content
Script to fix length attributes in serialized strings
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
README Changes in texts and descriptions Dec 15, 2011
fix-serialization.php Changes in texts and descriptions Dec 15, 2011
license.txt GPL 3 license Dec 15, 2011 Shell script that uses sed and call fix-serialization script. Dec 15, 2011


Fix Serialization

A PHP script to fix length attributes for serialized strings over database dumps (e.g. Wordpress databases)

This script can be useful if you perform text replacements in database dumps containing serialized data structures,
so that reconstructs the serialized length attribute and prevents the serialized offset error in code execution.

How to use:

- Execute directly this script in the way:

	/usr/bin/php fix-serialization.php my-sql-file.sql

- Or use the shell script that replaces with sed command each sql file in directory and call fix-serialization script


Licensed under the GPL version 3 or later:

Pau Iglesias

You can’t perform that action at this time.