Status/Resolution/Reason: To Fix//Bounced
Reporter/Name(from Bugbase): Mike Hodgson / ()
Created: 11/27/2018
Components: Language, Null Support
Versions: 2018
Failure Type: Incorrectly functioning
Found In Build/Fixed In Build: CF 2018 Update 1 /
Priority/Frequency: Normal / All users will encounter
Locale/System: English / Windows 7 SP1 64-bit
Vote Count: 2
Problem Description:
There appears to be a fundamental, breaking change in how null values are evaluated in a comparison. The comparisons below evaluated to False/NO in every version of Coldfusion before 2018. They now evaluate to True/YES.
Steps to Reproduce:
<cfoutput>#FunctionThatReturnsNull() gt now()#</cfoutput>
OR
<cfoutput>#FunctionThatReturnsNull() gt "hello"#</cfoutput>
Actual Result:
True
Expected Result:
False
Any Workarounds:
Change all code that makes these types of comparisons
Attachments:
Comments: