Bug #27607

Make Fluid comparisons work when first element is STRING, second is NULL.

Added by Sebastian Kurfuerst about 4 years ago. Updated over 3 years ago.

Status:New Start date:2011-06-21
Priority:Must have Due date:
Assigned To:- % Done:

0%

Category:Core
Target version:-
Has patch:No Affected Flow version:FLOW3 1.0.0

Description

Taken from https://review.typo3.org/#patch,unified,2824,2,Classes/Core/Parser/SyntaxTree/ViewHelperNode.php :

I know it is not in the table on php.net, but the case '' == NULL ($operand1 being string and $operand2 being NULL) should probably be comparable, too (and the PHP interpreter can of course compare them). What do you think?

I definitely agree, so we should implement this in Fluid v5 and provide tests for it, and then backport it.

History

#1 Updated by Karsten Dambekalns almost 4 years ago

  • Affected Flow version set to FLOW3 1.0.0

#2 Updated by Christian Müller over 3 years ago

This is basically a duplicate of #26665, right? Then one of them should maybe be closed?

Also available in: Atom PDF