PHP serialize recursive (circle) referencing objects.

By nghianghesi

Problem:

object1->ref = object2

object2->ref = object1

serialize(object1) & unserialize it failed in PHP

Solution: http://www.phpclasses.org/browse/package/5336.html

or check this file: recursive-serialize.zip (download, rename to .zip and extract)

Leave a Reply