tracker issue : CF-3988540

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

[ANeff] Bug for: var ignored in cfcatch

| View in Tracker

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

Listed in the version 2016.0.0.297996 Issues Fixed doc
Verification notes: verified_fixed on August 24, 2019 using build 2016.0.01.298513
var is honored in catch (good):

  function f1() {
    try {a;}
      catch(any e) {var foo = "bar";}
  writeDump(structKeyExists(variables, "foo"));//returns NO (good)

var is ignored in cfcatch (bug):

<cffunction name="f2">
    <cfset a>
      <cfset var foo = "bar">
<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).



CF-3041807 may be related.
Comment by External U.
7431 | May 15, 2015 12:51:09 AM GMT
Hi Adobe, I've verified this is fixed in CF2016 Update 1 (build 2016.0.01.298513). Thanks!, -Aaron
Comment by Aaron N.
31174 | August 24, 2019 07:55:20 AM GMT