[TYPO3-mvc] spl_object_hash not matching when using in Fluid ajax widget

Dennis Ahrens dennis.ahrens at googlemail.com
Tue Mar 8 17:07:21 CET 2011


On 08.03.2011 16:29, Jonas Götze wrote:
> The Comparison should work that way imo (I will try later - print_r
> shows matching values for everything) but anyhow I would like to
> understand whats wrong here ;)

Quote from http://www.php.net/manual/en/language.oop5.object-comparison.php

On the other hand, when using the identity operator (===), object 
variables are identical if and only if they refer to the same instance 
of the same class.

The first comment under spl_object_hash also points in this direction.

Is $myObject fetched from the WidgetContext? The Context is serialized / 
unserialized between the php calls. The IdentityMap does not know about 
those reconstructed objects than and creates new objects if you ask the 
repository - maybe the problem is located there.

regards
Dennis


More information about the TYPO3-project-typo3v4mvc mailing list