<CFWTF>

Funny CF7 Bug

I came across this accidentally, but it gave me a chuckle. Try entering the following code in a simple index.cfm:

<cffunction name="theFunk">
   <cfset doSomething=true>
</cffunction>

<cfset reference = theFunk>
<cfset reference.wrong = "What?!">

Can you guess what would happen? I figured it would probably throw an error, but the error it actually threw surprised me.

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
BlogCFC was created by Raymond Camden. This blog is running version 5.7.
</CFWTF>