Title:
Bug 79738:(Watson Migration Closure)Using StructDelete() function on the URL struct (and possibly the Form struct) to remove all elements, then using the StructIsEmpty() function on the URL (or Form) struct returns that the struct is no
| View in TrackerStatus/Resolution/Reason: Closed/Won't Fix/LowImpact
Reporter/Name(from Bugbase): Bruce Holm / Bruce Holm (cfcoder2)
Created: 09/03/2009
Components: Language, Functions
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: unknown (note: this existed in CF8 too) /
Priority/Frequency: Normal / Most users will encounter
Locale/System: English / Solaris All
Vote Count: 1
Problem:
Using StructDelete() function on the URL struct (and possibly the Form struct) to remove all elements, then using the StructIsEmpty() function on the URL (or Form) struct returns that the struct is not empty!
Method:
<!--- the following assumes there is one element in the URL struct called SN and has some string value assigned to it. --->
<cfdump var="#URL#">
<cfset rc = StructDelete(URL, "SN", "true")>
<cfdump var="RC: #rc#">
<br />
<cfdump var="StructIsEmpty: #StructIsEmpty(URL)#">
<cfdump var="#structcount(URL)#">
<cfdump var="#structkeylist(URL)#">
<cfdump var="#URL#">
<cfabort>
Result:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3039890
External Customer Info:
External Company:
External Customer Name: Bruce Holm
External Customer Email: 0BE54F6A405B97369920157F
External Test Config: 09/03/2009
Attachments:
Comments: