2017 © Pedro Peláez
 

library serialization

Unserializes php serialized strings and is able the process class that are not loaded

image

jeroenvdheuve/serialization

Unserializes php serialized strings and is able the process class that are not loaded

  • Tuesday, February 10, 2015
  • by jeroenvdheuvel
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

README

Description

This library provides the ability to unserialize and re-serialize php serialized data. Unlike the php unserializer, this library is not creating the actual objects that were serialized. Therefore no error will be thrown when the serialized class could not be found. This can come in handy when using multiple applications share data via php serialization., (*1)

Master: Build Status, (*2)

Known issues

HHVM is not able to serialize references containing objects. References containing objects, will be serialized as a copy/reference pointing to the same object but not to the same variable., (*3)

For instance:, (*4)

$o = new stdClass();
echo serialize(array(&$o, &$o))

Should echo a:2:{i:0;O:8:"stdClass":0:{}i:1;R:2;} when references are properly supported. HHVM will echo a:2:{i:0;O:8:"stdClass":0:{}i:1;r:2;}. Lowercase r means it's not a reference to the same variable. It's only pointing to the same object., (*5)

HHVM does support variables containing references. For instance:, (*6)

$i = 1;
echo serialize(array(&$i, &$i));

Will echo a:2:{i:0;i:1;i:1;R:2;} in both PHP and HHVM., (*7)

The Versions

10/02 2015

dev-master

9999999-dev

Unserializes php serialized strings and is able the process class that are not loaded

  Sources   Download

MIT

The Development Requires

by Jeroen van den Heuvel

serializer unserializer class not found