Bug #9360

ObjectSerializer does not detect recursion in object references

Added by Robert Lemke about 9 years ago. Updated almost 9 years ago.

Status:
Resolved
Priority:
Should have
Assignee:
Category:
Object
Start date:
2010-08-18
Due date:
% Done:

100%

PHP Version:
Has patch:
Complexity:

Description

Given the following object relations:


        $objectA = new $className();
        $objectB = new $className();

        $objectA->child = $objectB;
        $objectB->parent = $objectA;

On trying to serialize $objectA with serializeObjectAsPropertyArray(), the object serializer will end up in an infinite loop trying to recursively serialize the two objects.

Associated revisions

Revision 67ae141d (diff)
Added by Robert Lemke almost 9 years ago

[+BUGFIX] FLOW3 (Object): The ObjectSerializer now detects recursive reference in the object structure to be serialized. This should now allow to add even complex object structures to a session object which is then transparently stored by FLOW3. Resolves #9360

Change-Id: I202b78c9c3bc835a017c35baf2293e6e5776ad32

History

#1 Updated by Karsten Dambekalns about 9 years ago

  • Category changed from MVC - Routing to Object

#2 Updated by Robert Lemke about 9 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Applied in changeset r5009.

Also available in: Atom PDF