Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)
Created: 05/15/2015
Components: Language
Versions: 11.0
Failure Type: Data Corruption
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Normal / Some users will encounter
Locale/System: ALL / Platforms All
Vote Count: 0
var is honored in catch (good):
<cfscript>
function f1() {
try {a;}
catch(any e) {var foo = "bar";}
}
f1();
writeDump(structKeyExists(variables, "foo"));//returns NO (good)
</cfscript>
var is ignored in cfcatch (bug):
<cffunction name="f2">
<cftry>
<cfset a>
<cfcatch>
<cfset var foo = "bar">
</cfcatch>
</cftry>
</cffunction>
<cfset f2()>
<cfset writeDump(structKeyExists(variables, "foo"))><!--- returns YES (bad) --->
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3988540
External Customer Info:
External Company:
External Customer Name: Aaron
External Customer Email:
External Test Config: Verified in CF11 Update 5 (11,0,05,293506).
Attachments:
Comments: