dev-master
9999999-devFix corrupted serialized data
MIT
The Development Requires
by B.Poignant
php serialize unserialize corrupted-data
Wallogit.com
2017 © Pedro Peláez
Fix corrupted serialized data
Fix corrupted serialized data, (*1)
First repo., (*2)
composer require b-poignant/serialize-data-fixer
A step by step series of examples that tell you have to get a development env running, (*3)
Say what the step will be, (*4)
use UnserializeFixer\Fixer;
require_once('vendor/autoload.php');
var_dump(Fixer::run('a:3:{s:3:"foo";s:3:"bar";s:3:"int";i:8;i:9;s:4:"test";}'));
You can set config like this :, (*5)
use UnserializeFixer\Fixer;
use UnserializeFixer\Config;
require_once('vendor/autoload.php');
$config = new Config();
$config->setlogEnabled(false);
$config->setResolveMethod('complete');
Fixer::setConfig($config);
var_dump(Fixer::run('a:3:{s:3:"foo";s:3:"bar";s:3:"int";i:8;i:9;s:4:"test";}'));
End with an example of getting some data out of the system or using it for a little demo, (*6)
Explain how to run the automated tests for this system, (*7)
Explain what these tests test and why, (*8)
Give an example
You can run php-unit to run few tests on sample file, (*9)
phpunit --configuration phpunit.xml --testsuite Sample
Add additional notes about how to deploy this on a live system, (*10)
Fix corrupted serialized data
MIT
php serialize unserialize corrupted-data