Copy link to clipboard
Copied
I ran into a really odd behavior using cfinvoke in CF9. This came up for an application that has run fine on earlier version of CF and then broke on CF9.
The basic error comes up when we do something like (not actual code, but what seems to cause the problem):
<cfset stObject = structnew() />
<cfinvoke component="...."
method="get"
returnVariable="stObject" />
In this case where stObject is defined prior to running the cfinvoke, the get() method won't populate stObject.
However, if we do the same thing using the following:
<cfset stObject = createObject(....).get() />
then stObject is properly populated.
To make the older application work, we've had to go through the code and rewrite the cfinvoke's into CreateObject(...).method(). That gets past the errors but doesn't make any sense.
Has anyone else seen anything like this?
d
Copy link to clipboard
Copied
I have not experienced this, no. However I have to say I very seldom use <cfinvoke>.
Can you contrive a stand-alone / simple reproduction case of this?
--
Adam