Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Working with Pimf_Util_Serializer
Due to PHP Bug #39736 - serialize() consumes insane amount of RAM. Now PIMF can put objects, strings, integers or arrays. Even instances of SimpleXMLElement can be put too! If igbinary a ultra-fast PHP extention compiled than PIMF uses igbinary_serialize or igbinary_unserialize. Igbinary is a drop in replacement for the standard php serializer. Instead of time and space consuming textual representation, igbinary stores php data structures in compact binary form.
$serializedItem = \Pimf\Util\Serializer::serialize($item);
$item = \Pimf\Util\Serializer::unserialize($serializedItem);