[TYPO3-mvc] [FLUID]: anybody else issues with comparing objects in boolean expressions of FLUID?
Franz Koch
typo3.RemoveForMessage at elements-net.de
Thu Jun 3 16:33:00 CEST 2010
Hey there,
does anybody else have issues with current SVN version of FLUID and a
comparison of objects with boolean expresions, like in the if viewHelper?
<f:for each="{products}" as="product">
<f:if condition="{teaser.promotedProduct} != {currentProduct}">show me
something</f:if>
</f:for>
I use this line in one of my templates, and after upgrading from a
EXTBASE/FLUID 1.0/1.1 SVN build to current 1.2SVN I'm running into a
fatal error on some products:
--------------------
Fatal error: Nesting level too deep - recursive dependency? in
/var/www/vhosts/qa.eurobaustoff.fullhaus.de/httpdocs/typo3conf/ext/fluid/Classes/Core/Parser/SyntaxTree/ViewHelperNode.php
on line 303
--------------------
This is the place where the left and rightside of the condition get
compared. I could solve the issue by using bytesave comparison as soon
as both of the operands are objects (if used in general too many other
conditions failed). It seems as it could be an issue of php 5.2 (which
is not the best in dealing with objects). But I wonder why I didn't show
up with extbase/fluid 1.0/1.1 SVN but in current versions.
If you guys think this is a bug and not just some buggy code of my
extension, I'll file a bugreport with patch.
Thanks.
--
kind regards,
Franz Koch
More information about the TYPO3-project-typo3v4mvc
mailing list