tracker issue : CF-4202535

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

[ANeff] Bug for: dump displays local scope as [undefined struct element]

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Fixed

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

Created: 05/20/2018

Components: Debugging, CFDump, Language, Null Support

Versions: 2018

Failure Type: Incorrectly functioning

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

Priority/Frequency: Normal / Some users will encounter

Locale/System: / Platforms All

Vote Count: 0

Issue: dump displays local scope as [undefined struct element]

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

<cfscript>
  function f() {
    myVar = NULL//if this isn't commented-out, r is displayed as [undefined struct element]
    return local
  }
  r = f()
  writeDump(variables)
</cfscript>

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

F: [function]
     Arguments: none 
     ReturnType: Any 
     Roles:  
     Access: public 
     Output:   
     DisplayName:  
     Hint:  
     Description:  
MYVAR: [null]
R: [undefined struct element]
-----------

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

F: [function]
     Arguments: none 
     ReturnType: Any 
     Roles:  
     Access: public 
     Output:   
     DisplayName:  
     Hint:  
     Description:  
MYVAR: [null]
R: [struct]
     ARGUMENTS: [struct]
     THIS: [null]
-----------

Related post: http://blog.cfaether.com/2018/05/dump-displays-local-scope-as-undefined.html

Attachments:

Comments:

Hi Adobe, Another repro: <cfscript> cfthread(name="myThread1"){variables.foo1 = duplicate(local)} thread name="myThread2" {variables.foo2 = duplicate(local)} cfthread(action="join", name="myThread1,myThread2") writeDump([foo1,foo2]) writeDump({foo1=foo1,foo2=foo2}) </cfscript> Actual Result: 1st dump's foo2 displayed as [undefined array element] and 2nd dump's foo2 displayed as [undefined struct element] Expected Result: Both dump's foo2 properly displayed Thanks!, -Aaron
Comment by Aaron N.
27895 | May 20, 2018 09:52:46 PM GMT