Skip to main content
Participant
October 8, 2012
Question

structkeyexists finding keys that do not exists in CF 9

  • October 8, 2012
  • 1 reply
  • 955 views

I found an odd issue with structkeyexists.

<cfset ticket = structnew()>
<cfset thiskey = "u|406468633|txslfault06">

<cfset structinsert(ticket, thiskey, "VOC000003770699|1349211974|tiegsda")>

<cfdump var="#ticket#">

<cfif structkeyexists(ticket, "u|398230449|njbdfault05")>
<cfset raw = structfind(ticket, "u|398230449|njbdfault05")>
    <cfdump var="#raw#">
</cfif>

somehow it thinks that u|398230449|njbdfault05 is the same as: u|406468633|txslfault06

any Ideas?

This topic has been closed for replies.

1 reply

Inspiring
October 8, 2012

Not for me it doesn't.  I just get the outout of the first dump, which is what I expected.

Is that code in a stand-alone file with nothing else interfering?

Can you post a screencap of the output?

Can you provide your OS / bitness / type of CF install / anything else that might contribute to this?

--

Adam

Participant
October 8, 2012

I put this small code toguether to trouble shoot the issue... had a user complain that a ticket was assign to them that was not supposed to. and I narrow it down to this.

it works fine on my new CF10 server, it is only happening on CF9

Inspiring
October 8, 2012

I don't get it on CF9.0.2 either. Nor CF8.0.1, nor CFMX7.0.2...

--

Adam