[TYPO3-mvc] ObjectStorage with large quantities of DB-Objects
Martin Kutschker
masi-no at spam-typo3.org
Tue May 25 08:46:50 CEST 2010
Nils Blattner schrieb:
>
> I tried to remove the extbase references with
> $session->unregisterReconstitutedObject($user);
> where $session is the session of the persistence manager.
Why didn't it work?
Did you use PHP 5.3 with the garbage collection turned on or an ealier version? Note that any
objects with cyclic references * will never be released fro memory by PHP 5.2 and earlier.
Masi
*
// case 1
parent->child = new Child()
child->parent = parent
unset(parent)
// memory for parent and child is still allocated!!!
// case 2
parent->child = new Child()
child->parent = parent
unset(child->parent)
unset(parent)
// memory for parent and child is freed
More information about the TYPO3-project-typo3v4mvc
mailing list