Hello,

I wrote a small UDF to help confirm this:

<cffunction name="test" output="Yes">
    a
    <cfreturn "foo">
</cffunction>

<cfoutput>#test()#</cfoutput>
<br>
<cfdump var="#test()#">

The expected result is:

a foo
a foo

But the result I'm getting (tested in two CF 7 deploys, Windows based) is

a foo
a a foo

The cfdump seems to evaluate the function twice before return the 
result. I hope no one use cfdump in production applications, but it can 
be (and it was!) a pain during development.

Thanks,
Fabio Terracini



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:195733
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to