tracker issue : CF-3043072

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

Bug 85822:(Watson Migration Closure)implicit struct fails to be evaluated in cfscript depending on the order in which it appears

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Stephen Withington / Stephen Withington (steve_withington)

Created: 01/13/2011

Components: Language, CFSCRIPT

Versions: 9.0.1

Failure Type: Unspecified

Found In Build/Fixed In Build: 274733 / 280065

Priority/Frequency: Major / Most users will encounter

Locale/System: English / Win All

Vote Count: 6

Problem:

implicit struct fails to be evaluated in cfscript depending on the order in which it appears.  blog post with details can be found here: http://www.stephenwithington.com/blog/index.cfm/2011/1/13/Beware-of-Implicit-Structs-Bug-in-ColdFusion-901
Method:

<cfscript>if ( not IsDefined('term') ) {term = 'unknown';};terms = {};</cfscript><cfset y = {name="foo"}><cfdump var="#variables#"><cfdump var="#terms#">
Result:

Variable {VarName} is undefined

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3043072

Deployment Phase:	Release Candidate

External Customer Info:
External Company:  
External Customer Name: Stephen Withington
External Customer Email: 80C1073345FEBD8E992016B8
External Test Config: 01/13/2011

Attachments:

Comments: