tracker issue : CF-4014645

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

ArrayFindNoCase() throws error

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/Duplicate

Reporter/Name(from Bugbase): Neil Pugh / Neil Pugh (Neil Pugh)

Created: 06/30/2015

Components: Language

Versions: 11.0

Failure Type: Non Functioning

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Normal / Most users will encounter

Locale/System: English / Windows 7

Vote Count: 0

Duplicate ID:	CF-4082131

Problem Description: If you dynamically create the array used by ArrayFind then the code will error with some weird variable not created by the user.

Steps to Reproduce:
<cfif false>
<cfelseif ArrayFind(["a","b"], "a")>
</cfif>

Actual Result: Error. "Variable ___IMPLICITARRYSTRUCTVAR0 is undefined"

Expected Result: Not an error. The condition is met and nothing is output.

Any Workarounds: Yes but come on this is core code it should work.

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

Watson Bug ID:	4014645

External Customer Info:
External Company:  
External Customer Name: Neil
External Customer Email:  
External Test Config: My Hardware and Environment details: Windows 7.

Attachments:

Comments:

Verified the above code. The problem exists. When we try to create array used by ArrayFind in cfelseif condition then it returns some weird variable as reported above. It works fine when the condition is given in cfif, This should be fixed.
Comment by Poonam J.
6828 | June 30, 2015 10:39:26 PM GMT