tracker issue : CF-4202534

select a category, or use search below
(searches all categories and all time range)
Title:

[ANeff] Bug for: variable named NULL spawns in variables scope

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Fixed

Reporter/Name(from Bugbase): Aaron Neff / ()

Created: 05/20/2018

Components: Language, Null Support

Versions: 2018

Failure Type: Incorrectly functioning

Found In Build/Fixed In Build: 2018.0.01.308605 (PreRelease) / 2018,0,0,310080

Priority/Frequency: Normal / Most users will encounter

Locale/System: / Platforms All

Vote Count: 0

Issue: variable named NULL spawns in variables scope

Steps to Reproduce:
1) Enable NULL support
2) Run:

<cfscript>
  myVar = NULL
  writeDump(variables)
</cfscript>

Actual Result 1:
-----------
struct

MYVAR: [null]
NULL: [null]
-----------

Expected Result 1:
-----------
struct

MYVAR: [null]
-----------

Related post: http://blog.cfaether.com/2018/05/variable-named-null-spawns-in-variables.html

Attachments:

Comments:

Hi Adobe, Issue also occurs for URL.myVar=null, FORM.myVar=null, REQUEST.myVar=null, SESSION.myVar=null, APPLICATION.myVar=null and SERVER.myVar=null It doesn't matter what scope. A variable named `NULL` always spawns into variables scope. Thanks!, -Aaron
Comment by Aaron N.
27892 | May 20, 2018 08:43:15 AM GMT