Bug #27607

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

Added by Sebastian Kurfuerst about 10 years ago. Updated over 9 years ago.

Status:
New
Priority:
Must have
Assignee:
-
Category:
Core
Target version:
-
Start date:
2011-06-21
Due date:
% Done:

0%

Estimated time:
Has patch:
No

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.

#2

Updated by Christian Müller over 9 years ago

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

Also available in: Atom PDF