Status/Resolution/Reason: Closed/Fixed/Fixed
Reporter/Name(from Bugbase): Jake Munson / Jake Munson ()
Created: 02/03/2017
Components: Language, Functions
Versions: 11.0
Failure Type: Incorrectly functioning
Found In Build/Fixed In Build: CF 11 Update 11 / 11,0,12,302277
Priority/Frequency: Normal / Most users will encounter
Locale/System: / Win 2008 Server R2 64 bit
Vote Count: 2
Problem Description: CF Update 11 for ColdFusion 11 has a bug with implicit array declaration inside cffunction. If you var scope a variable that is implicitly declared, CF throws an error.
Steps to Reproduce:
Apply the Update 11 patch to a ColdFusion 11 server.
Run this code on a test page:
<cfset testFunc()>
<cffunction name="testFunc">
<cfset var testArray[1] = "">
</cffunction>
Actual Result:
An error: "The system has attempted to use an undefined value, which usually indicates a programming error, either in your code or some system code."
Expected Result:
Code runs without error.
Any Workarounds:
Uninstall Update 11. Or, declare the variable first instead of using implicit declaration:
<cfset var testArray = arrayNew(1)>
Attachments:
Comments: