tracker issue : CF-4202536

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

[ANeff] Bug for: local scope has THIS in .cfm

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Duplicate

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) / NA

Priority/Frequency: Normal / Some users will encounter

Locale/System: / Platforms All

Vote Count: 0

Issue: local scope has THIS in .cfm

Steps to Reproduce:
1) Enable NULL support
2) Run in a .cfm:

<cfscript>
  function f() {
    return local
  }
  writeDump(f())
</cfscript>

Actual Result (with NULL support enabled):
-----------
struct

ARGUMENTS: [struct]
THIS: [null]
-----------

Expected Result (and actual result with NULL support disabled):
-----------
struct

ARGUMENTS: [struct]
-----------

Related post: http://blog.cfaether.com/2018/05/local-scope-has-this-in-cfm.html

Attachments:

Comments:

Hi Adobe, Issue also occurs in threads: index.cfm ----------- <cfscript> cfthread(name="myThread1"){variables.foo1 = duplicate(local)} thread name="myThread2" {variables.foo2 = duplicate(local)} cfthread(action="join", name="myThread1,myThread2") writeOutput(foo1.keyExists("this")) writeOutput(foo2.keyExists("this")) </cfscript> Actual Result: YESYES Expected Result (and actual result when NULL support is disabled): NONO Thanks!, -Aaron
Comment by Aaron N.
27894 | May 20, 2018 09:35:43 PM GMT
Duplicate of CF-4202534
Comment by Vijay M.
27917 | May 22, 2018 12:51:38 PM GMT
Hi Vijay, - CF-4202536 = "local scope has THIS in .cfm" (and in threads) - CF-4202534 = "variable named NULL spawns in variables scope" I don't see how those are even related?.. Let alone duplicates?.. I'm confused.. Thanks!, -Aaron
Comment by Aaron N.
27921 | May 23, 2018 07:52:31 AM GMT