Specifications

CFML functions and variables 13
CFML functions and variables
The following table describes other CFML functions and variables in ColdFusion MX
that differ from ColdFusion Server 5:
Function Status Issue For more information
ArrayAvg(), ArrayMin(),
ArrayMax(), ArraySum()
Changed Returns “0” when used with an empty
array. ColdFusion 5 returns infinity
(1.#INF).
See ArrayAvg(),
ArrayMin(), ArrayMax(),
and ArraySum() in CFML
Reference.
AuthenticatedContext(),
AuthenticatedUser(),
IsAuthenticated(),
IsAuthorized(),
IsProtected()
Obsolete ColdFusion MX is based on a completely
different security model than
ColdFusion 5.
See the “Application
Security” chapter in
Developing ColdFusion MX
Applications with CFML
.
DateDiff()
Changed In ColdFusion 5, there is one less second
in a minute when calculating a negative
difference. For example, it returns 60
seconds between 03:44:23 and
03:45:23, but -59 seconds between
03:45:23 and 03:44:23.
ColdFusion MX calculates negative
differences correctly, so if your application
contains code that adjusts the
ColdFusion 5 results, you might have to
change it.
See DateDiff() in
CFML
Reference
.
DeleteClientVariable()
Changed Returns False when the variable does not
exist. ColdFusion 5 ignores the function
call.
See
DeleteClientVariable()
in
CFML Reference
.
GetBaseTagList()
Changed Returns prefixed custom tags found in the
tag stack in the format x:tag, where x is
the prefix that you specified.
See GetBaseTagList() in
CFML Reference
.
GetLocale()
Changed When the locale has not been explicitly set
using SetLocale(), GetLocale() returns
the default locale of the client computer’s
operating system. In ColdFusion 5,
GetLocale() returns English(US) when
the locale has not been explicitly set.
See GetLocale() and
SetLocale() in
CFML
Reference
.
GetTempDirectory()
Changed (Windows) Returns the temporary
directory for the embedded Java
application server, instead of the
temporary directory for the Windows
operating system, as in ColdFusion 5.
See GetTempDirectory()
in
CFML Reference
.
IsArray()
Changed Returns True with a QueryColumn
argument. You can change the value of an
array element, but you cannot add or
remove an element.
See “QueryColumn object”
on page 17, and IsArray()
in
CFML Reference
.