tracker issue : CF-4204153

select a category, or use search below
(searches all categories and all time range)
Title:

ColdFusion has an undocument _insert() function

| View in Tracker

Status/Resolution/Reason: To Test//AsDesigned

Reporter/Name(from Bugbase): Dan S. / ()

Created: 04/05/2019

Components: Functions

Versions: 2016,11.0,2018

Failure Type: Incorrectly functioning

Found In Build/Fixed In Build: All builds of CF11+ /

Priority/Frequency: Normal / Some users will encounter

Locale/System: ALL / Platforms All

Vote Count: 2

Problem Description:

Adobe ColdFusion 11, 2016 and 2018 all have an undocumented function named _insert() that appears to be just like the documented insert() function.

Steps to Reproduce:
{code:java}
<cfscript>
_insert("hello");
</cfscript>
{code}


This causes issues with code that named private functions _insert() to work around the fact that insert() is a reserved name.

Actual Result:
Parameter validation error for the _INSERT function.
The function takes 3 parameters.

Expected Result:
The function should not exist.

Any Workarounds:
Refactor code to not use the name "_insert" for a private function.

Attachments:

Comments: