Hi:
I've just raised http://code.google.com/p/openbluedragon/issues/detail?id=263,
which is detailed as follows:


Open BlueDragon Product Version         1.4a
Open BlueDragon Build Date      2010-08-03 01:00:48 GMT

Consider this code:

<cfset varName = "x">

<cftry>
        <cfparam name="varName" type="variablename">
        CFPARAM OK
        <cfcatch>
                CFPARAM errored: <cfoutput>#cfcatch.message# #cfcatch.detail#</
cfoutput>
        </cfcatch>
</cftry>
<br />

<cftry>
        <cfset f(a=varName)>
        CFARGUMENT OK
        <cfcatch>
                CFARGUMENT errored: <cfoutput>#cfcatch.message# 
#cfcatch.detail#</
cfoutput>
        </cfcatch>
</cftry>
<br />

<cfset b = isValid("variableName", varName)>
<cfif b>
        ISVALID OK
<cfelse>
        ISVALID GOT IT WRONG
</cfif>
<br />

<cffunction name="f">
        <cfargument name="a" type="variablename" required="true">
        <cfreturn arguments.a>
</cffunction>

On OpenBD, the output is:
CFPARAM errored: General Runtime Error Variable [varName] is not of
type [variablename]
CFARGUMENT OK
ISVALID GOT IT WRONG


Obviously (?) "x" is actually a valid variable name.

If I change varName to contain "xx", it all runs fine.  I tried "i" as
well: same thing.  Perhaps it's single-char variable names?  Dunno.

Cheers.

--
Adam


-- 
Open BlueDragon Public Mailing List
 http://www.openbluedragon.org/   http://twitter.com/OpenBlueDragon
 official manual: http://www.openbluedragon.org/manual/
 Ready2Run CFML http://www.openbluedragon.org/openbdjam/

 mailing list - http://groups.google.com/group/openbd?hl=en

Reply via email to